浏览代码

Added doc header to exec/key-handler

master
Bert Münnich 10 年前
父节点
当前提交
9a0bcd7025
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      exec/key-handler

+ 11
- 0
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 ;;


正在加载...
取消
保存