forked from extern/nix-config
sxhkd: Simplify desktop focusing
This commit is contained in:
parent
a17bdb86f6
commit
a99716560c
@ -89,17 +89,13 @@ super + ctrl + {1-9}
|
|||||||
# ======= Desktop =======
|
# ======= Desktop =======
|
||||||
# =======================
|
# =======================
|
||||||
|
|
||||||
# Focus desktop {1-9,0} (or bounce to last desktop)
|
# Focus a certain desktop / Send a node to a certain desktop
|
||||||
super + {1-9,0}
|
super + {_,shift} + {1-9,0}
|
||||||
target='^{1-9,10}'; \
|
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||||
[ "$(bspc query -D -d "$target")" != "$(bspc query -D -d)" ] \
|
|
||||||
&& bspc desktop -f "$target" || bspc desktop -f last.local
|
|
||||||
|
|
||||||
# Send a node to a certain desktop (or bounce to the last one)
|
# Move to the next desktop on the current monitor
|
||||||
super + shift + {1-9,0}
|
super + {_, shift} + Tab
|
||||||
target='^{1-9,10}'; \
|
bspc desktop -f {next,prev}.local.occupied
|
||||||
[ "$(bspc query -D -d "$target")" != "$(bspc query -D -d)" ] \
|
|
||||||
&& bspc node -d "$target" || bspc node -d last.local
|
|
||||||
|
|
||||||
# Easily go back and forth between the last desktop used
|
# Easily go back and forth between the last desktop used
|
||||||
super + a
|
super + a
|
||||||
|
Loading…
Reference in New Issue
Block a user