Skip to content

Instantly share code, notes, and snippets.

@bechampion
Created October 27, 2022 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bechampion/68054397775225329eae478056493f80 to your computer and use it in GitHub Desktop.
Save bechampion/68054397775225329eae478056493f80 to your computer and use it in GitHub Desktop.
#
# wm independent hotkeys
#
# terminal emulator
super Return
urxvt -cd /home/jgarcia
#super + Return
# urxvt -cd /home/jgarcia -e bash -c "VISUAL=vim tmux -f ~/.tmux.conf new-session -s $(date +%N) \; set-option destroy-unattached "
# program launcher
super + @space
bspc node @/ -R 90,
# make sxhkd reload its configuration files:
super + Escape
pkill -USR1 -x sxhkd
#
# bspwm hotkeys
#
# quit/restart bspwm
super + alt + {q,r}
bspc {quit,wm -r}
# close and kill
super + shift + q
bspc node -c
# alternate between the tiled and monocle layout
super + m
bspc desktop -l next
super + shift + y
diodon
super + r
rofi -show run -font 'Menlo 12' 2>&1 >> /dev/null
# send the newest marked node to the newest preselected node
super + y
bspc node newest.marked.local -n newest.!automatic.local
# swap the current node and the biggest window
super + g
bspc config -m HDMI-0 window_gap {0,20}
#
# state/flags
#
# set the window state
super + {t,shift + t,s}
bspc node -t {tiled,pseudo_tiled,floating}
super + f
bspc node -t \~fullscreen
# set the node flags
super + ctrl + {m,x,y,z}
bspc node -g {marked,locked,sticky,private}
#
# focus/swap
#
# focus the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
super + {Left,Down,Up,Right}
bspc node -f {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 window in the current desktop
super + {_,shift + }c
bspc node -f {next,prev}.local.!hidden.window
# focus the next/previous desktop in the current monitor
super + bracket{left,right}
bspc desktop -f {prev,next}.local
# focus the last node/desktop
super + grave
bspc {node,desktop} -f last
super + Tab
rofi -show window
# 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 --to-desktop} '^{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
super + shift + y
diodon
# cancel the preselection for the focused desktop
super + shift + w
xdg-open "https://www.google.com/search?q=$(echo $(xclip -out -selection primary|tr '\n' ' ') | sed -e 's/ /%20/g')"
super + shift + s
/home/jgarcia/Projects/i3/sshot.sh 2>&1 >> /dev/null
super + ctrl + shift + space
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
super + ctrl +shift +p
i3lock -c 000000 ; systemctl suspend
super + p
i3lock -c 000000
XF86MonBrightness{Up,Down}
brightnessctl s 100{+,-}
#
# move/resize
#
# expand a window by moving one of its side outward
super + alt + {h,j,k,l}
bspc node -z {left -40 0,bottom 0 40,top 0 -40,right 40 0}
# contract a window by moving one of its side inward
super + alt + shift + {h,j,k,l}
bspc node -z {right -40 0,top 0 40,bottom 0 -40,left 40 0}
# move a floating window
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}
super + e
pcmanfm
ctrl + super + shift + s
/home/jgarcia/Project/i3/sshotpath.sh
super + shift + s
/home/jgarcia/Project/i3/sshot.sh
super + shift + b
/home/jgarcia/Projects/i3/btprofile.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment