.xbindkeysrc (2583B)
1 ########################### 2 # xbindkeys configuration # 3 ########################### 4 # 5 # Version: 1.8.7 6 # 7 # If you edit this file, do not forget to uncomment any lines 8 # that you change. 9 # The pound(#) symbol may be used anywhere for comments. 10 # 11 # To specify a key, you can use 'xbindkeys --key' or 12 # 'xbindkeys --multikey' and put one of the two lines in this file. 13 # 14 # The format of a command line is: 15 # "command to start" 16 # associated key 17 # 18 # 19 # A list of keys is in /usr/include/X11/keysym.h and in 20 # /usr/include/X11/keysymdef.h 21 # The XK_ is not needed. 22 # 23 # List of modifier: 24 # Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock), 25 # Mod3 (CapsLock), Mod4, Mod5 (Scroll). 26 # 27 28 # The release modifier is not a standard X modifier, but you can 29 # use it if you want to catch release events instead of press events 30 31 # By defaults, xbindkeys does not pay attention with the modifiers 32 # NumLock, CapsLock and ScrollLock. 33 # Uncomment the lines above if you want to pay attention to them. 34 35 #keystate_numlock = enable 36 #keystate_capslock = enable 37 #keystate_scrolllock= enable 38 39 # Examples of commands: 40 41 #"xterm -geom 49x20+20+20" 42 # Shift+Mod2+alt + s 43 # 44 ## set directly keycode (here control+alt+mod2 + f with my keyboard) 45 #"xterm" 46 # alt + c:0x29 + m:4 + mod2 47 # 48 ## Control+Shift+a release event starts rxvt 49 #"rxvt" 50 # release+control+shift + a 51 # 52 ## Control + mouse button 2 release event starts rxvt 53 #"rxvt" 54 # Control + b:2 + Release 55 56 ## close dunst notifications 57 "/usr/bin/dunstctl close-all" 58 alt + space 59 60 ## cmus 61 ### open cmus 62 "urxvtc -e dtach -A /tmp/mus cmus" 63 alt + m 64 ### toggle music pause 65 "/usr/bin/cmus-remote -u" 66 alt + c 67 ### next track 68 "/usr/bin/cmus-remote -n" 69 alt + b 70 ### show track details 71 "/usr/bin/notify-send -u 'normal' "$(cmus-remote -Q | grep -E 'tag artist |tag album |tag title ' | awk '{$1=""; print $0}')"" 72 alt + t 73 74 ## mpv 75 ### pause running mpv process 76 "echo '{"command":["cycle", "pause"]}'|socat - /tmp/mpvsock" 77 alt + p 78 79 ## volume 80 "curvol=$(awk -F"[][]" '/%/ {print $2}' <(amixer get Master) | tr -d '%' | head -n1) ; curvol=$(( curvol - 10 )) ; amixer set Master "${curvol}%"" 81 alt + Page_Down 82 "curvol=$(awk -F"[][]" '/%/ {print $2}' <(amixer get Master) | tr -d '%' | head -n1) ; curvol=$(( curvol + 10 )) ; amixer set Master "${curvol}%"" 83 alt + Page_Up 84 85 ## ptt 86 #"/usr/bin/amixer set Capture cap >/dev/null" 87 # alt + p 88 #"/usr/bin/amixer set Capture nocap >/dev/null" 89 # release+alt + p 90 "/home/pyratebeard/.local/bin/ptt" 91 alt + p 92 93 ################################## 94 # End of xbindkeys configuration # 95 ##################################