diff options
author | Bert Münnich <ber.t@posteo.de> | 2014-01-05 22:07:21 +0100 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2014-01-05 22:07:21 +0100 |
commit | 9a0bcd7025ee1ba9eb32503c86e03a3db166484e (patch) | |
tree | 660001d74c9942f3cae6d6905f227af98d5e4f01 /exec/key-handler | |
parent | d75a5a027c5ece0bf6d2d1782ed7e6bad938a691 (diff) |
Added doc header to exec/key-handler
Diffstat (limited to 'exec/key-handler')
-rw-r--r-- | exec/key-handler | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/exec/key-handler b/exec/key-handler index 5647251..3912825 100644 --- a/exec/key-handler +++ b/exec/key-handler @@ -1,5 +1,16 @@ #!/bin/sh +# Example for ~/.sxiv/exec/key-handler +# Called by sxiv(1) whenever an unbound key combo is used, +# with the key combo as its first argument and the path of the current image +# as its second argument. +# sxiv(1) blocks until this script terminates. It then checks if the image +# has been modified and reloads it. + +# 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" | xsel -i ;; |