summaryrefslogtreecommitdiffstats
path: root/sxhkd
diff options
context:
space:
mode:
Diffstat (limited to 'sxhkd')
-rw-r--r--sxhkd/.config/sxhkd/sxhkdrc119
1 files changed, 119 insertions, 0 deletions
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc
new file mode 100644
index 0000000..12303f5
--- /dev/null
+++ b/sxhkd/.config/sxhkd/sxhkdrc
@@ -0,0 +1,119 @@
+#
+# bspwm hotkeys
+#
+
+super + alt + Escape
+ bspc quit
+
+super + w
+ bspc window -c
+
+super + t
+ bspc desktop -l next
+
+super + b
+ bspc desktop -B
+
+super + {s,f}
+ bspc window -t {floating,fullscreen}
+
+super + {grave,Tab}
+ bspc {window,desktop} -f last
+
+super + apostrophe
+ bspc window -s last
+
+super + {o,i}
+ bspc control --record-history off; \
+ bspc window {older,newer} -f; \
+ bspc control --record-history on
+
+super + y
+ bspc window -w last.manual
+
+super + m
+ bspc window -s biggest
+
+super + {_,shift + }{h,j,k,l}
+ bspc window -{f,s} {left,down,up,right}
+
+super + {_,shift + }c
+ bspc window -f {next,prev}
+
+super + {comma,period}
+ bspc desktop -C {backward,forward}
+
+super + bracket{left,right}
+ bspc desktop -f {prev,next}
+
+super + ctrl + {h,j,k,l}
+ bspc window -p {left,down,up,right}
+
+super + ctrl + {_,shift + }space
+ bspc {window -p cancel,desktop -c}
+
+super + alt + {h,j,k,l}
+ bspc window -e {left -10,down +10,up -10,right +10}
+
+super + alt + shift + {h,j,k,l}
+ bspc window -e {right -10,up +10,down -10,left +10}
+
+super + ctrl + {1-9}
+ bspc window -r 0.{1-9}
+
+super + {_,shift + }{1-9,0}
+ bspc {desktop -f,window -d} ^{1-9,10}
+
+~button1
+ bspc pointer -g focus
+
+super + button{1-3}
+ bspc pointer -g {move,resize_side,resize_corner}
+
+super + !button{1-3}
+ bspc pointer -t %i %i
+
+super + @button{1-3}
+ bspc pointer -u
+
+#
+# wm independent hotkeys
+#
+
+super + Return
+ urxvt
+
+super + space
+ dmenu_run -fn "-*-termsyn-medium-r-normal-*-13-*-*-*-c-*-*-1" -h 20 -nb \#2f2b30 -nf \#fefdfb -sb \#cf0f38 -sf \#fefdfb
+
+# make sxhkd reload its configuration files:
+super + Escape
+ pkill -USR1 -x sxhkd
+
+XF86MonBrightnessDown
+ xbacklight -dec 10
+
+XF86MonBrightnessUp
+ xbacklight -inc 10
+
+XF86KbdBrightnessDown
+ kbdlight down
+
+XF86KbdBrightnessUp
+ kbdlight up
+
+XF86AudioRaiseVolume
+ pamixer --increase 5;\
+ pamixer --get-volume > /tmp/volinfo
+
+XF86AudioLowerVolume
+ pamixer --decrease 5;\
+ pamixer --get-volume > /tmp/volinfo
+
+XF86AudioMute
+ pamixer --toggle-mute;\
+ if $(pamixer --get-mute) ; then;\
+ echo ⮝ > /tmp/spkicon;\
+ else;\
+ echo ⮟ > /tmp/spkicon;\
+ fi