Skip to content

Instantly share code, notes, and snippets.

@professorjamesmoriarty
Created April 30, 2016 01:43
Show Gist options
  • Save professorjamesmoriarty/52665171eb7e2489e2508b8634958127 to your computer and use it in GitHub Desktop.
Save professorjamesmoriarty/52665171eb7e2489e2508b8634958127 to your computer and use it in GitHub Desktop.
#
# bspwm hotkeys
#
# quit bspwm normally
super + alt + Escape
bspc quit
# close and kill
super + {_,shift + }w
bspc node -{c,k}
# alternate between the tiled and monocle layout
super + m
bspc desktop -l next
# if the 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
#
# 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 + {x,y,z}
bspc node -g {locked,sticky,private}
#
# focus/swap
#
# focus the node in the given direction
super + {_,shift + }{Left,Down,Up,Right}
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
super + {_,shift + }c
bspc node -f {next,prev}
# 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 or send to the given desktop
super + {_,shift + }{1-9,0}
bspc {desktop -f, node -d} $(bspc query -M -m)/{a,b,c,d,e}
alt + w
bspc monitor -f next
#
# preselect
#
# preselect the direction
super + ctrl + {Left,Down,Up,Right}
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
# cancel the preselection for the focused desktop
super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
#
# resize tiled/floating
#
# expand the tiled space in the given direction
super + alt + {Left,Down,Up,Right}
bspc node {@west -r -10,@south -r +10,@north -r -10,@east -r +10}
# contract the tiled space in the given direction
super + alt + shift + {Left,Down,Up,Right}
bspc node {@east -r -10,@north -r +10,@south -r -10,@west -r +10}
# move a floating window
super + {Left,Down,Up,Right}
xdo move {-x -20,-y +20,-y -20,-x +20}
#
# pointer focus/move/resize
#
# focus
~button1
bspc pointer -g focus
# start move/resize
super + button{1-3}
; bspc pointer -g {move,resize_side,resize_corner}
# end move/resize
super + @button{1-3}
bspc pointer -u
#
#
#
super + F5
mpc stop
super + F6
mpc toggle
super + F7
mpc prev
super + F8
mpc next
super + F9
mpc volume 0
super + F10
mpc volume 50
super + F11
mpc volume -10
super + F12
mpc volume +10
super + i
shaggyinfo
super + b
qutebrowser
alt + Tab
rofi -show window
super + F1
readlaterprompt
super + p
passmenu -nb "#1d1d1d" -sb "#5A5A5A"
super + t
timepop
super + n
notevim --dmenu
super + Return
urxvtc
super + alt + space
keratin -nb "#1d1d1d" -sb "#5A5A5A"
super + space
dmenu_run -b -nb "#1d1d1d" -sb "#5A5A5A"
#dmenu_run -b -nb "#1d1d1d" -sb "#5A5A5A" -fn "-*-fixed-medium-r-*-*-12-*-*-*-*-*-*-*"
# make sxhkd reload its configuration files:
super + F3
/home/shaggy/.screenlayout/mainlayout.sh
super + m
/home/shaggy/bin/shaggymail.sh
super + u
/home/shaggy/bin/shaggyupdater
super + grave
xdotool search --name Qutebrowser windowactivate
super + shift + grave
xdotool search --name weechat windowactivate
super + g
rofi-surfraw
super + Escape
pkill -USR1 -x sxhkd
super + KP_Add
/home/shaggy/bin/osdmixer up
super + KP_Subtract
/home/shaggy/bin/osdmixer down
super + KP_Multiply
/home/shaggy/bin/osdmixer toggle
super + KP_Divide
/home/shaggy/bin/osdmixer state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment