Commit b4f52753 authored by Guilherme Semente's avatar Guilherme Semente 🌱

Minor improvements

parent 2621275c
......@@ -2,7 +2,9 @@
# make sxhkd reload its configuration files
shift + super + r
pkill -USR1 -x sxhkd
pkill -USR1 -x sxhkd; \
source ~/etc/xlocalrc; \
source ~/.config/bspwm/bspwmrc
# scratch terminal
super + Return
......@@ -51,28 +53,27 @@ super + @Print
#
# quit node
shift + super + k
{shift + super + k, alt + F4}
bspc node -c
# focus the next/previous desktop or node
{alt +,_} super + {Prior,p,Next,n,o}
bspc {desktop,node} -f {prev,prev,next,next,next}.local
# focus the next/previous node
super + {p,n,o}
bspc node -f {prev,next,next}.local
# focus the last desktop
super + {alt + l,alt + Tab,Tab}
bspc desktop -f last
# focus the next/previous desktop
super + {Prior,Next}
bspc desktop -f {prev,next}.local
# focus the last node
{super + l,alt + Tab}
bspc node -f last.local
# change focus to given desktop
{alt,super} + {F1,F2,F3,F4}
{true,true};\
# change focus to given desktop; or switch to last focused desktop
super + {F1,F2,F3,F4}
curdesk="$(bspc query -D -d --names)";\
deskname="{1,2,3,4}";\
test "$curdesk" -eq "$deskname" && bspc desktop -f last || bspc desktop -f "$deskname"
# focus the last node
{super + l, alt + Tab}
bspc node -f last.local
# hide current node (cut)
super + w
stack_file="${XDG_RUNTIME_DIR}/bspwm-hidden-nodes.txt"; \
......@@ -93,16 +94,16 @@ super + t
bspc node focused -t tiled || bspc node focused -t floating
# toggle node fullscreen state
super + f
{super + f, F11}
bspc node focused -t \~fullscreen
# alternate between the tiled and monocle layouts
super + m
{super + m, alt + F10}
bspc desktop -l next
# change window gap
super + g
bspc config -d focused window_gap {0,4,8,16,32,64,96,128} && xwrite "$(bspc config -d focused window_gap)px"
bspc config -d focused window_gap {8,16,32,64} && xwrite "$(bspc config -d focused window_gap)px"
# circulate windows in the current desktop
super + c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment