123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- #
- # wm independent hotkeys
- #
-
- # power operations
- super + End ; {s,S,alt + s,r,p}
- loginctl {suspend,hibernate,hybrid-sleep,reboot,poweroff}
-
- super + End ; b
- xset dpms force off
-
- # rofi
- super + shift + {End,Insert,Return}
- exec {rofi-powermenu,rofi-bspwm-unhide,rofi -modi emoji -show emoji}
-
- super + Home
- exec rofi -modi calc -show calc
-
- super + space
- exec rofi -show drun
-
- alt + Tab
- rofi-windowswitcher
-
- # applications
- super + Return
- exec kitty -1
-
- super + shift + {m,v}
- exec {mpv "$(xclip -sel c -o)",pavucontrol-qt}
-
- super + shift + {n,p}
- exec kitty -1 --class=kittyfloat -o initial_window_width=900 -o initial_window_height=900 \
- {ncmpcpp,htop}
-
- super + Insert
- carpalx-helper
-
- {_,ctrl} + Print
- screenshot {-s -u,-u}
-
- super + {_,shift + }Print
- exec {peek -t, peek}
-
-
- #
- # bspwm hotkeys
- #
-
- # close and kill
- super + {_,shift + }w
- bspc node -{c,k}
-
- # alternate between the tiled and monocle layout
- super + m
- bspc desktop -l next
-
- # if current node is automatic, send it to the last manual, otherwise pull the last leaf
- super + y
- bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
-
- # swap the current node and the biggest node
- super + g
- bspc node -s biggest.local
-
- # toggle pointer focus
- super + alt + p
- bspc config focus_follows_pointer {true,false}
-
- #
- # state/flags
- #
-
- # set the window state
- super + {t,shift + t,s,f}
- bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
-
- # set the node flags
- super + ctrl + {w,x,y,z}
- bspc node -g {hidden,locked,sticky,private}
-
- super + ctrl + shift + w
- bspc node $(bspc query -N -d focused -n .hidden | tail -1) -g hidden=off
-
- #
- # focus/swap
- #
-
- super {_,+ shift} + r
- bspc node @/ -R {90,270}
-
- # rotate leaves of tree
- super + shift + {comma,period}
- bspc desktop -R {90,270}
-
- # focus/swap the node in the given direction
- super + {_,shift + }{h,j,k,l}
- bspc node -{f,s} {west,south,north,east}
-
- # focus the node for the given path jump
- super + {p,b,comma,period}
- bspc node -f @{parent,brother,first,second}
-
- # focus the next/previous node in the current desktop
- super + {_,shift + }c
- bspc node -f {next,prev}.local
-
- # focus the next/previous desktop
- super + bracket{left,right}
- bspc desktop -f {prev,next}
-
- # focus the last node/desktop
- super + {grave,Tab}
- bspc {node,desktop} -f last
-
- # focus the older or newer node in the focus history
- super + {o,i}
- bspc wm -h off; \
- bspc node {older,newer} -f; \
- bspc wm -h on
-
- # focus/send to the given desktop
- super + {_,shift + }{1-9,0}
- bspc {desktop -f,node -d} '^{1-9,10}'
-
- #
- # preselect
- #
-
- # preselect the direction
- super + ctrl + {h,j,k,l}
- bspc node -p {west,south,north,east}
-
- # preselect the ratio
- super + ctrl + {1-9}
- bspc node -o 0.{1-9}
-
- # cancel the preselection for the focused node
- super + ctrl + space
- bspc node -p cancel
-
- #
- # move/resize
- #
-
- # expand the tiled space in the given direction
- super + alt + {h,j,k,l}
- bspc node {@west -r -,@south -r +,@north -r -,@east -r +}10
-
- # contract the tiled space in the given direction
- super + alt + shift + {h,j,k,l}
- bspc node {@east -r -,@north -r +,@south -r -,@west -r +}10
-
- # move a floating window
- super + {Left,Down,Up,Right}
- bspc node -v {-20 0, 0 20, 0 -20,20 0}
|