From c63df9b6409b227b959a2d5989390e837a995bb8 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 25 Apr 2021 23:47:28 +0300 Subject: feat(sxiv): add key-handler --- .config/sxiv/exec/key-handler | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .config/sxiv/exec/key-handler (limited to '.config/sxiv') diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler new file mode 100755 index 0000000..42b7c1a --- /dev/null +++ b/.config/sxiv/exec/key-handler @@ -0,0 +1,15 @@ +#!/bin/sh + +while read file +do + case "$1" in + "C-d") + mv "$file" ~/.trash ;; + "C-r") + convert -rotate 90 "$file" "$file" ;; + "C-c") + echo -n "$file" | xclip -selection clipboard ;; + "C-w") + echo "$file" && xwallpaper --zoom "$file" ;; + esac +done -- cgit v1.2.3