dot_testing/.config/sxhkd/sxhkdrc

158 lines
2.5 KiB
Plaintext
Raw Normal View History

2023-11-22 16:53:33 -06:00
# spawn a terminal
2021-05-09 19:04:25 -05:00
super + Return
2023-11-22 16:53:33 -06:00
st
2021-05-09 19:04:25 -05:00
ctrl + b; c
st
ctrl + b; Return
st
2023-11-22 16:53:33 -06:00
# spawn the launcher
2021-05-09 19:04:25 -05:00
super + d
2023-11-22 16:53:33 -06:00
tmenu_run
2022-06-26 19:57:05 -05:00
ctrl + b; d
tmenu_run
2024-11-18 19:01:28 -06:00
# launch brave with profile selection
super + b
brave-launcher
2024-11-24 20:26:39 -06:00
ctrl + b; b
brave-launcher
2023-11-22 16:53:33 -06:00
# kill sxhkd with USR1 and restart bspwm
2021-05-09 19:04:25 -05:00
super + r
2023-11-22 16:53:33 -06:00
pkill -USR1 -x sxhkd; \
bspc wm -r
2021-05-09 19:04:25 -05:00
ctrl + b; r
pkill -USR1 -x sxhkd; \
bspc wm -r
2023-11-22 16:53:33 -06:00
# switch to "mouse mode"
2023-11-15 21:04:50 -06:00
super + m
mode mouse
2022-07-06 00:36:14 -05:00
ctrl + b; m
mode mouse
2023-11-22 16:53:33 -06:00
# kill the current node
2021-05-09 19:04:25 -05:00
super + q
2023-11-22 16:53:33 -06:00
bspc node -c
2021-05-09 19:04:25 -05:00
ctrl + b; q
bspc node -c
2023-11-22 16:53:33 -06:00
# kill bspwm
2021-05-09 19:04:25 -05:00
super + e
2023-11-22 16:53:33 -06:00
bspc quit 0
2021-05-09 19:04:25 -05:00
ctrl + b; e
2024-11-04 01:45:16 -06:00
bspc quit 0; \
pkill X # phone starts bspwm differently
# to take everything down, we need to kill X
2023-11-22 16:53:33 -06:00
# systemctl suspend
2022-07-31 19:23:15 -05:00
super + shift + e
2023-11-22 16:53:33 -06:00
systemctl suspend
2022-07-31 19:23:15 -05:00
2024-04-15 19:33:35 -05:00
# password menu
super + z
passmenu
ctrl + b; z
passmenu
2023-11-22 16:53:33 -06:00
# manipulate a node
super + {_,ctrl +,shift + }{h,j,k,l}
2023-11-22 16:53:33 -06:00
bspc node -{f,p,s} {west,south,north,east}
2021-05-09 19:04:25 -05:00
ctrl + b; {_,ctrl +,shift + }{h,j,k,l}
bspc node -{f,p,s} {west,south,north,east}
2023-11-22 16:53:33 -06:00
# change to or move a node to a desktop
2021-05-09 19:04:25 -05:00
super + {_,shift + } {1-9,0}
bspc {desktop -f,node -d} '0{1-9,0}'
super + space; {_,shift + } {1-9,0}
bspc {desktop -f,node -d} '1{1-9,0}'
2021-05-09 19:04:25 -05:00
ctrl + b; {_,shift + } {1-9,0}
bspc {desktop -f,node -d} '0{1-9,0}'
2024-11-24 20:26:39 -06:00
ctrl + b; space; {_,shift + } {1-9,0}
bspc {desktop -f,node -d} '1{1-9,0}'
2023-11-22 16:53:33 -06:00
# change a node to tiling, floating, or fullscreen
2021-05-09 19:04:25 -05:00
super + {t,f,s}
2023-11-22 16:53:33 -06:00
bspc node -t {tiled,floating,fullscreen}
2024-02-04 07:48:42 -06:00
ctrl + b; {t,f,s}
bspc node -t {tiled,floating,fullscreen}
shift + Insert
special_ins
# phone specific -- send the escape key since we can't use it
2024-11-18 19:01:28 -06:00
ctrl + b; [
xdotool key Escape
2024-11-18 17:44:29 -06:00
# mouse keybindings on the keypad
# move left
{ctrl +,shift +} KP_6
xdotool mousemove_relative -- {5,50} 0
# move down
{ctrl +,shift +} KP_2
xdotool mousemove_relative -- 0 {5,50}
# move up
{ctrl +,shift +} KP_8
xdotool mousemove_relative -- 0 {-5,-50}
# move right
{ctrl +,shift +} KP_4
xdotool mousemove_relative -- {-5,-50} 0
{ctrl +,shift +} KP_Divide
xdotool mousedown 1
{ctrl +,shift +} KP_Multiply
xdotool mousedown 2
{ctrl +,shift +} KP_Subtract
xdotool mousedown 3
{ctrl +,shift +} @KP_Divide
xdotool mouseup 1
{ctrl +,shift +} @KP_Multiply
xdotool mouseup 2
{ctrl +,shift +} @KP_Subtract
xdotool mouseup 3
KP_Divide
xdotool mousedown 1
KP_Multiply
xdotool mousedown 2
KP_Subtract
xdotool mousedown 3
@KP_Divide
xdotool mouseup 1
@KP_Multiply
xdotool mouseup 2
@KP_Subtract
xdotool mouseup 3
2024-11-24 20:26:39 -06:00
# you're using tmux and you need ctrl+b
ctrl + b; ~ctrl + b
echo ctrlb passthrough