aboutsummaryrefslogtreecommitdiffstats
path: root/.sxiv
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2014-01-06 10:16:16 -0700
committershmibs <shmibs@gmail.com>2014-01-06 10:16:16 -0700
commiteb52ab2616e8e004499333656307d01c45c369ef (patch)
treea704f4c2abbfabb4dd2867cd333db48b3e323811 /.sxiv
downloaddotfiles-eb52ab2616e8e004499333656307d01c45c369ef.tar.gz
initial commit
Diffstat (limited to '.sxiv')
-rwxr-xr-x.sxiv/exec/key-handler14
1 files changed, 14 insertions, 0 deletions
diff --git a/.sxiv/exec/key-handler b/.sxiv/exec/key-handler
new file mode 100755
index 0000000..f47c88a
--- /dev/null
+++ b/.sxiv/exec/key-handler
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# The key combo argument has the following form: "[C-][M-][S-]KEY",
+# where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
+# keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
+
+case "$1" in
+"C-c")
+ echo -n "$2" | xclip -selection clipboard ;;
+"C-d")
+ rm "$2" ;;
+"C-g")
+ gimp "$2" & ;;
+esac