nsxiv9a0bcd7
Added doc header to exec/key-handler
+11 −0
1 file changed
- M exec/key-handler +11 −0
| @@ -1,5 +1,16 @@ | |||
| 1 | 1 | #!/bin/sh | |
| 2 | 2 | ||
| 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 | + | ||
| 3 | 14 | case "$1" in | |
| 4 | 15 | "C-c") | |
| 5 | 16 | echo -n "$2" | xsel -i ;; | |