aboutsummaryrefslogtreecommitdiffstats
path: root/.config/sxiv
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2014-02-11 22:32:53 -0700
committershmibs <shmibs@gmail.com>2014-02-11 22:32:53 -0700
commitc1b4ebd6f50ec3c1e50e367b95dbfd4448709281 (patch)
treee6ca6bee0b2009c156f399db9382cdd46ac90441 /.config/sxiv
parent5825e884b80beda1a77234b137fe3a39263ac215 (diff)
downloaddotfiles-c1b4ebd6f50ec3c1e50e367b95dbfd4448709281.tar.gz
moved sxiv configs
Diffstat (limited to '.config/sxiv')
-rwxr-xr-x.config/sxiv/exec/key-handler14
1 files changed, 14 insertions, 0 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
new file mode 100755
index 0000000..50dcfc7
--- /dev/null
+++ b/.config/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
+"y")
+ echo -n "$2" | xclip -selection clipboard ;;
+"C-d")
+ rm "$2" ;;
+"g")
+ gimp "$2" & ;;
+esac