Skip to content

Instantly share code, notes, and snippets.

@wallentx
Created July 16, 2015 16:19
Show Gist options
  • Save wallentx/805dcd39375d815c094f to your computer and use it in GitHub Desktop.
Save wallentx/805dcd39375d815c094f to your computer and use it in GitHub Desktop.
sxhkdrc
#
# bspwm hotkeys
#
super + c
echo "$(bspc query -D -d)" > /tmp/bspwmdtop_swap
#Not done yet.
super + v
bspc desktop $(bspwc query -D -d) -n tmp; \
bspc desktop -s ^$(cat /tmp/bspwmdtop_swap)
super + w
bspc window -c
super + t
bspc desktop -l next && bspc window -f next
super + b
bspc desktop -B
super + {s,f}
bspc window -t {floating,fullscreen}
super + {_,shift} + Tab
bspc desktop -f {next,prev}
alt + {_,shift} + Tab
bspc window -f {next,prev}
super + apostrophe
bspc window -s last
super + m
bspc window -s biggest
super + shift + {Left,Down,Up,Right}
bspc config pointer_follows_focus true; \
cur_win=$(bspc query -W -w); \
cur_mon=$(bspc query -M -m); \
dir={left,down,up,right}; \
if ! bspc window -f $dir; then \
bspc window -m $dir; \
bspc monitor -f $dir; \
else \
new_mon=$(bspc query -M -m); \
if [ $new_mon -eq $cur_mon ]; then \
bspc window -s $cur_win; \
else \
bspc window $cur_win -m ^$new_mon; \
fi; \
bspc window -f $cur_win; \
fi; \
bspc config pointer_follows_focus false
super + {Left,Down,Up,Right}
bspc config pointer_follows_monitor true; \
bspc config pointer_follows_focus true; \
dir={left,down,up,right}; \
if ! bspc window -f $dir; then \
bspc monitor -f $dir; \
fi; \
bspc config pointer_follows_monitor false; \
bspc config pointer_follows_focus false
super + {comma,period}
bspc desktop -C {backward,forward}
super + ctrl + {Left,Down,Up,Right}
bspc window -p {left,down,up,right}
super + ctrl + {_,shift + }space
bspc {window -p cancel,desktop -c}
super + alt + {Left,Down,Up,Right}
bspc window -e {left -35,down +35,up -35,right +35}
super + alt + shift + {Left,Down,Up,Right}
bspc window -e {right -35,up +35,down -35,left +35}
super + ctrl + {1-9}
bspc window -r 0.{1-9}
# These two keybinds assume monitor/desktop naming scheme of 1/i, 1/ii, 2/i, etc..
super + {1-9}
D={1-9}; \
CUR_MON=$(bspc query -M -m); \
DESK_REF=$(printf "%0.si" $(seq 1 $D)); \
bspc desktop -f $CUR_MON/$DESK_REF
super + shift + {1-9}
D={1-9}; \
CUR_MON=$(bspc query -M -m); \
DESK_REF=$(printf "%0.si" $(seq 1 $D)); \
bspc window -d $CUR_MON/$DESK_REF
~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
super + d
bspc control --toggle-visibility
super + shift + q
killall panel && bspc quit
super + {_,shift} + semicolon
bspc desktop -R {90,270}
super + {_,shift} + slash
~/bin/{gapt,panelt}
#
# wm independent hotkeys
#
super + p
i3blur.sh
super + o
firefox
super + shift + o
google-chrome-stable
super + e
pcmanfm
super + Return
termite
super + space
dmenu_run -fn "Source Code Pro-14:normal"
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd
# edit sxhkdrc
super + shift + Escape
urxvt -e vim ~/.config/sxhkd/sxhkdrc
#
# Launchers
#
#{F11, F12}
# amixer sset Master 2dB{-,+}
{XF86AudioLowerVolume, XF86AudioRaiseVolume}
amixer sset Master 2dB{-,+}
{XF86MonBrightnessDown, XF86MonBrightnessUp}
~/bin/bright {down,up}
@wallentx
Copy link
Author

wallentx commented Aug 2, 2024

1722599732851
Screenshot_20240802-174509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment