zathura: yank filename using "y"

This commit is contained in:
Alexander Bocken 2024-08-18 21:13:58 +02:00
parent ab72387a96
commit 162bce097d
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
2 changed files with 4 additions and 0 deletions

View File

@ -16,3 +16,4 @@ map g goto top
map <C-s> exec zathura_backward_search.sh map <C-s> exec zathura_backward_search.sh
map <A-Return> exec "openfilebrowser $FILE" map <A-Return> exec "openfilebrowser $FILE"
map <C-h> exec "movepdf $FILE" map <C-h> exec "movepdf $FILE"
map y exec "copyfilepath $FILE"

3
.local/bin/tools/copyfilepath Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
printf %s "$*" | xclip -selection clipboard &&
notify-send "Copied to clipboard: $*"