1
0
forked from extern/nix-config

Toggle node modes natively with bspc

There is no need to check for whether or not a certain mode is set,
since bspc has a feature that automatically uses the previous mode if
the same mode was detected.

Also, "monocle" is a desktop layout, not a node mode. And modes are
states, not modes. I confused the terminology quite a bit when I was
starting out with bspwm (maybe to make the transition easier?) but now
that I've used it long enough, I feel comfortable using the proper
terminology. All future bspwm-related commits should (hopefully) contain
the proper wording.
This commit is contained in:
Donovan Glover 2018-10-19 13:47:49 -04:00
parent a4982e767b
commit d42738f4b9
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -80,40 +80,22 @@ super + {1-9,0}
super + shift + {1-9,0}
bspc node -d '^{1-9,10}'
# Toggle between pseudo_tiled and tiled
# This floats the window in the area it occupies
# and automatically centers it
# Toggle pseudo_tiled mode. This floats the node
# in the area it occupies and automatically centers it
super + r
if [ -z "$(bspc query -N -n focused.pseudo_tiled)" ]; then \
bspc node focused -t pseudo_tiled; \
else \
bspc node focused -t tiled; \
fi
bspc node focused -t ~pseudo_tiled
# Toggle between tiled and "true" fullscreen
# Toggle fullscreen mode
super + t
if [ -z "$(bspc query -N -n focused.fullscreen)" ]; then \
bspc node focused -t fullscreen; \
else \
bspc node focused -t tiled; \
fi
bspc node focused -t ~fullscreen
# Toggle between floating and tiled (default)
# This is the equivalent of a floating window in i3
# Toggle floating mode
super + v
if [ -z "$(bspc query -N -n focused.floating)" ]; then \
bspc node focused -t floating; \
else \
bspc node focused -t tiled; \
fi
bspc node focused -t ~floating
# Same as above
super + space
if [ -z "$(bspc query -N -n focused.floating)" ]; then \
bspc node focused -t floating; \
else \
bspc node focused -t tiled; \
fi
bspc node focused -t ~floating
# Toggle between "tiled" and "fullscreen" monocle mode
super + f