adding config
This commit is contained in:
parent
d66cc2930f
commit
efd5355229
5 changed files with 55 additions and 28 deletions
BIN
super.png
Normal file
BIN
super.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 364 KiB |
BIN
super_alt.png
Normal file
BIN
super_alt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 201 KiB |
BIN
super_alt_ctrl.png
Normal file
BIN
super_alt_ctrl.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 187 KiB |
BIN
super_ctrl.png
Normal file
BIN
super_ctrl.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 265 KiB |
83
sxhkdrc
83
sxhkdrc
|
@ -2,37 +2,40 @@
|
||||||
# wm independent hotkeys
|
# wm independent hotkeys
|
||||||
#
|
#
|
||||||
|
|
||||||
# terminal emulator
|
# terminal
|
||||||
super + shift + t
|
super + shift + t
|
||||||
kitty
|
kitty
|
||||||
|
|
||||||
# program launcher
|
super + Return
|
||||||
super + @space
|
kitty nvim
|
||||||
dmenu_run
|
|
||||||
|
|
||||||
# editor
|
# dmenu
|
||||||
super + shift + Return
|
super + @space + {_,m,l}
|
||||||
kitty /usr/local/bin/nvim
|
{dmenu_run,kitty ~/.local/bin/manmenu,kitty ~/.local/bin/lsmenu}
|
||||||
|
|
||||||
# browser
|
# browsers
|
||||||
super + shift + b
|
super + shift + {q,f,c}
|
||||||
qutebrowser
|
{qutebrowser,firefox,chromium}
|
||||||
|
|
||||||
|
# monitors
|
||||||
|
super + shift + a
|
||||||
|
arandr
|
||||||
|
|
||||||
# make sxhkd reload its configuration files:
|
# make sxhkd reload its configuration files:
|
||||||
super + shift + r
|
super + shift + r
|
||||||
pkill -USR1 -x sxhkd
|
pkill -USR1 -x sxhkd
|
||||||
|
|
||||||
# monitors
|
|
||||||
super + shift + m
|
|
||||||
arandr
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# bspwm hotkeys
|
# bspwm hotkeys
|
||||||
#
|
#
|
||||||
|
|
||||||
# quit/restart bspwm
|
# quit bspwm
|
||||||
super + alt + {q,r}
|
super + Escape
|
||||||
bspc {quit,wm -r}
|
pkill -x panel; bspc quit
|
||||||
|
|
||||||
|
# restart bspwm
|
||||||
|
super + r
|
||||||
|
bspc wm -r
|
||||||
|
|
||||||
# close and kill
|
# close and kill
|
||||||
super + {_,shift + }w
|
super + {_,shift + }w
|
||||||
|
@ -47,7 +50,8 @@ super + y
|
||||||
bspc node newest.marked.local -n newest.!automatic.local
|
bspc node newest.marked.local -n newest.!automatic.local
|
||||||
|
|
||||||
# swap the current node and the biggest window
|
# swap the current node and the biggest window
|
||||||
super + Return
|
#it would be nice to make this work only for active desktops
|
||||||
|
super + g
|
||||||
bspc node -s biggest.window
|
bspc node -s biggest.window
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -59,7 +63,7 @@ super + {t,p,s,f}
|
||||||
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||||
|
|
||||||
# set the node flags
|
# set the node flags
|
||||||
super + ctrl + {m,l,y,z}
|
super + ctrl + {m,l,s,p}
|
||||||
bspc node -g {marked,locked,sticky,private}
|
bspc node -g {marked,locked,sticky,private}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -67,20 +71,33 @@ super + ctrl + {m,l,y,z}
|
||||||
#
|
#
|
||||||
|
|
||||||
# focus the node in the given direction
|
# focus the node in the given direction
|
||||||
super + {_,shift + }{h,n,e,i}
|
super + {h,n,e,i}
|
||||||
bspc node -{f,s} {west,south,north,east}
|
bspc node -f {west,south,north,east}
|
||||||
|
|
||||||
|
|
||||||
# focus the node for the given path jump
|
# focus the node for the given path jump
|
||||||
super + {p,b,comma,period}
|
super + {shift + b,b,comma,period}
|
||||||
bspc node -f @{parent,brother,first,second}
|
bspc node -f @{parent,brother,first,second}
|
||||||
|
|
||||||
# focus the next/previous window in the current desktop
|
# focus the next/previous window in the current desktop
|
||||||
super + {_,shift + }c
|
super + {_,ctrl + }c
|
||||||
bspc node -f {next,prev}.local.!hidden.window
|
bspc node -f {next,prev}.local.!hidden.window
|
||||||
|
|
||||||
# focus the next/previous desktop in the current monitor
|
# focus the next/previous monitor
|
||||||
super + bracket{left,right}
|
super + bracket{left,right}
|
||||||
bspc desktop -f {prev,next}.local
|
bspc monitor -f {prev,next}
|
||||||
|
|
||||||
|
# focus the next/previous desktop in the current monitor
|
||||||
|
super + shift + bracket{left,right}
|
||||||
|
bspc desktop -f {prev,next}.local
|
||||||
|
|
||||||
|
# move window to the next/previous monitor
|
||||||
|
super + shift + {Left,Down,Up,Right}
|
||||||
|
dir={west,south,north,east}; \
|
||||||
|
bspc node -s "$dir.local" --follow \
|
||||||
|
|| bspc node -m "$dir" --follow
|
||||||
|
#super + shift + bracket{left,right}
|
||||||
|
# bspc node -s
|
||||||
|
|
||||||
# focus the last node/desktop
|
# focus the last node/desktop
|
||||||
super + {grave,Tab}
|
super + {grave,Tab}
|
||||||
|
@ -96,6 +113,10 @@ super + {_,shift + } + k
|
||||||
super + {_,shift + }{1-9,0}
|
super + {_,shift + }{1-9,0}
|
||||||
bspc {desktop -f,node -d} focused:'^{1-9,10}'
|
bspc {desktop -f,node -d} focused:'^{1-9,10}'
|
||||||
|
|
||||||
|
# send to desktop and go to desktop
|
||||||
|
super + ctrl + {1-9,0}
|
||||||
|
bspc node -d '^{1-9,10}' --follow
|
||||||
|
|
||||||
#
|
#
|
||||||
# preselect
|
# preselect
|
||||||
#
|
#
|
||||||
|
@ -105,7 +126,7 @@ super + ctrl + {h,n,e,i}
|
||||||
bspc node -p {west,south,north,east}
|
bspc node -p {west,south,north,east}
|
||||||
|
|
||||||
# preselect the ratio
|
# preselect the ratio
|
||||||
super + ctrl + {1-9}
|
super + shift + ctrl + {1-9}
|
||||||
bspc node -o 0.{1-9}
|
bspc node -o 0.{1-9}
|
||||||
|
|
||||||
# cancel the preselection for the focused node
|
# cancel the preselection for the focused node
|
||||||
|
@ -120,6 +141,12 @@ super + ctrl + shift + space
|
||||||
# move/resize
|
# move/resize
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# move node in the given direction
|
||||||
|
super + shift + {h,n,e,i}
|
||||||
|
dir={west,south,north,east}; \
|
||||||
|
bspc node -s "$dir.local" --follow \
|
||||||
|
|| bspc node -m "$dir" --follow
|
||||||
|
|
||||||
# expand a window by moving one of its side outward
|
# expand a window by moving one of its side outward
|
||||||
super + alt + {h,n,e,i}
|
super + alt + {h,n,e,i}
|
||||||
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
||||||
|
@ -129,5 +156,5 @@ super + alt + shift + {h,n,e,i}
|
||||||
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
|
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
|
||||||
|
|
||||||
# move a floating window
|
# move a floating window
|
||||||
super + shift + {h,n,e,i}
|
super + alt + ctrl + {h,n,e,i}
|
||||||
bspc node -v {-20 0,0 20,0 -20,20 0}
|
bspc node -v {-20 0,0 20,0 -20,20 0}
|
||||||
|
|
Loading…
Reference in a new issue