Krolyxon
Commit 9a0bcd7

Branches

Refs →

nsxiv9a0bcd7

Added doc header to exec/key-handler

Author
Bert Münnich
Date
2014-01-05 22:07 +0100
Parent
d75a5a0
Commit
9a0bcd7025ee1ba9eb32503c86e03a3db166484e

+11 −0

1 file changed

  1. M exec/key-handler +11 −0
M exec/key-handler View
@@ -1,5 +1,16 @@
11 #!/bin/sh
22
3+# Example for ~/.sxiv/exec/key-handler
4+# Called by sxiv(1) whenever an unbound key combo is used,
5+# with the key combo as its first argument and the path of the current image
6+# as its second argument.
7+# sxiv(1) blocks until this script terminates. It then checks if the image
8+# has been modified and reloads it.
9+
10+# The key combo argument has the following form: "[C-][M-][S-]KEY",
11+# where C/M/S indicate Ctrl/Meta(Alt)/Shift modifier states and KEY is the X
12+# keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
13+
314 case "$1" in
415 "C-c")
516 echo -n "$2" | xsel -i ;;