summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2019-01-01 13:45:26 +0100
committerBert Münnich <ber.t@posteo.de>2019-01-01 13:45:26 +0100
commit71c5766d896df4f7e3fffb51d77c840ca68be033 (patch)
tree1c98074bc8ddcb6452bea2eb824c618d1e5127d3
parent04950162ea57d9e27b024a1dd11d9954590a7af2 (diff)
downloadnsxiv-71c5766d896df4f7e3fffb51d77c840ca68be033.tar.zst
Copy to primary buffer and clipboard
The file names are separated with newlines in the primary and with spaces in the clipboard.
-rwxr-xr-xexec/key-handler2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/key-handler b/exec/key-handler
index 06757c0..9202dd8 100755
--- a/exec/key-handler
+++ b/exec/key-handler
@@ -23,7 +23,7 @@ rotate() {
}
case "$1" in
-"y") tr '\n' ' ' | xclip -i ;;
+"C-x") xclip -in -filter | tr '\n' ' ' | xclip -in -selection clipboard ;;
"C-c") while read file; do xclip -selection clipboard -target image/png "$file"; done ;;
"C-e") while read file; do urxvt -bg "#444" -fg "#eee" -sl 0 -title "$file" -e sh -c "exiv2 pr -q -pa '$file' | less" & done ;;
"C-g") tr '\n' '\0' | xargs -0 gimp & ;;