summary refs log tree commit diff stats
path: root/tag-xbindkeys
diff options
context:
space:
mode:
authorAlan Pearce2014-04-12 13:15:53 +0100
committerAlan Pearce2014-04-12 13:15:53 +0100
commit81c8016d1e296ed91af69f2d5bf435d7d657af04 (patch)
treebbccda0a7e252ce2f90bfd648fa7b5edb7d45920 /tag-xbindkeys
parent9dd9b2972c4c526109f4fb57f936b67290ace003 (diff)
downloadnixfiles-81c8016d1e296ed91af69f2d5bf435d7d657af04.tar.lz
nixfiles-81c8016d1e296ed91af69f2d5bf435d7d657af04.tar.zst
nixfiles-81c8016d1e296ed91af69f2d5bf435d7d657af04.zip
Restructure everything to use rcm
https://github.com/thoughtbot/rcm
Diffstat (limited to 'tag-xbindkeys')
-rw-r--r--tag-xbindkeys/xbindkeysrc.scm57
1 files changed, 57 insertions, 0 deletions
diff --git a/tag-xbindkeys/xbindkeysrc.scm b/tag-xbindkeys/xbindkeysrc.scm
new file mode 100644
index 00000000..7b00c38d
--- /dev/null
+++ b/tag-xbindkeys/xbindkeysrc.scm
@@ -0,0 +1,57 @@
+;; To specify a key, you can use 'xbindkeys --key' or
+;; 'xbindkeys --multikey' and put one of the two lines in this file.
+
+;; A list of keys is in /usr/include/X11/keysym.h and in
+;; /usr/include/X11/keysymdef.h
+;; The XK_ is not needed.
+
+;; List of modifier:
+;;   Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
+;;   Mod3 (CapsLock), Mod4, Mod5 (Scroll).
+
+
+;; The release modifier is not a standard X modifier, but you can
+;; use it if you want to catch release instead of press events
+
+;; By defaults, xbindkeys does not pay attention to modifiers
+;; NumLock, CapsLock and ScrollLock.
+;; Uncomment the lines below if you want to use them.
+;; To dissable them, call the functions with #f
+
+
+;;;;EXTRA FUNCTIONS: Enable numlock, scrolllock or capslock usage
+;;(set-numlock! #t)
+;;(set-scrolllock! #t)
+;;(set-capslock! #t)
+
+;;;;; Scheme API reference
+;;;;
+;; Optional modifier state:
+;; (set-numlock! #f or #t)
+;; (set-scrolllock! #f or #t)
+;; (set-capslock! #f or #t)
+;;
+;; Shell command key:
+;; (xbindkey key "foo-bar-command [args]")
+;; (xbindkey '(modifier* key) "foo-bar-command [args]")
+;;
+;; Scheme function key:
+;; (xbindkey-function key function-name-or-lambda-function)
+;; (xbindkey-function '(modifier* key) function-name-or-lambda-function)
+;;
+;; Other functions:
+;; (remove-xbindkey key)
+;; (run-command "foo-bar-command [args]")
+;; (grab-all-keys)
+;; (ungrab-all-keys)
+;; (remove-all-keys)
+;; (debug)
+
+(xbindkey '(mod4 F9)  "mpc toggle")
+(xbindkey '(mod4 F10) "mpc prev")
+(xbindkey '(mod4 F11) "mpc next")
+(xbindkey '(mod4 F12) "mpc stop")
+
+(xbindkey '(mod4 p) "dmenu_run -fn '-misc-termsyn-medium-r-normal--11-79-100-100-c-60-*-*' -nb '#002b36' -nf '#fdf6e3' -sb '#586e75' -sf '#fdf6e3' -hist '/home/alan/.cache/dmenu_run_history'")
+(xbindkey '(mod4 shift T) "urxvtc")
+(xbindkey '(mod4 shift E) "emacsclient -c")