summaryrefslogtreecommitdiff
path: root/.config/nsxiv/exec/key-handler
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-07-04 07:04:36 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-07-04 07:04:36 -0400
commitf38290ee90ffc2e2ee79cd00284bd68b4a152a45 (patch)
tree0e42ce0abca53b931f2dbca5a434ba3cdb0c6647 /.config/nsxiv/exec/key-handler
parent8ef3d5106407f52dbdfca05969eff92d2c3af932 (diff)
downloaddotfiles-f38290ee90ffc2e2ee79cd00284bd68b4a152a45.tar.gz
dotfiles-f38290ee90ffc2e2ee79cd00284bd68b4a152a45.zip
add nsxiv
Diffstat (limited to '.config/nsxiv/exec/key-handler')
-rwxr-xr-x.config/nsxiv/exec/key-handler8
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nsxiv/exec/key-handler b/.config/nsxiv/exec/key-handler
new file mode 100755
index 0000000..78742cb
--- /dev/null
+++ b/.config/nsxiv/exec/key-handler
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+while IFS= read -r file; do
+ case "$1" in
+ C-c) xclip -sel clip -t image/png <"$file" ;;
+ C-w) xwallpaper --zoom "$file" ;;
+ esac
+done