mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-30 09:38:37 +01:00
sxhkd: Refactor bspc keybinds
This commit also removes the "switch to previous node" keybind, since an option like that changes often and may behave unexpectedly if another node is focused with the cursor.
This commit is contained in:
parent
3b8b3bece4
commit
9595c8093d
@ -53,20 +53,12 @@ super + {_,shift} + {h,j,k,l}
|
|||||||
bspc node -{f,s} {west,south,north,east}
|
bspc node -{f,s} {west,south,north,east}
|
||||||
|
|
||||||
# Switch to the next / previous node (includes monocle layout)
|
# Switch to the next / previous node (includes monocle layout)
|
||||||
super + {n,m}
|
super + {_,shift} + n
|
||||||
bspc node -f {next,prev}
|
bspc node -f {next,prev}
|
||||||
|
|
||||||
# Swap between the last window used
|
|
||||||
super + c
|
|
||||||
bspc node -f last
|
|
||||||
|
|
||||||
# Send a node to a certain desktop
|
|
||||||
super + shift + {1-9,0}
|
|
||||||
bspc node -d '^{1-9,10}'
|
|
||||||
|
|
||||||
# FLAGS: Toggle between node flags
|
# FLAGS: Toggle between node flags
|
||||||
super + {x,y,l}
|
super + {x,y}
|
||||||
bspc node -g {sticky,private,locked}
|
bspc node -g {sticky,private}
|
||||||
|
|
||||||
# STATES: Toggle between node states
|
# STATES: Toggle between node states
|
||||||
super + {t,r,f,space}
|
super + {t,r,f,space}
|
||||||
@ -76,6 +68,10 @@ super + {t,r,f,space}
|
|||||||
# ======= Desktop =======
|
# ======= Desktop =======
|
||||||
# =======================
|
# =======================
|
||||||
|
|
||||||
|
# Focus a certain desktop / Send a node to a certain desktop
|
||||||
|
super + {_,shift} + {1-9,0}
|
||||||
|
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||||
|
|
||||||
# Move to the next desktop on the current monitor
|
# Move to the next desktop on the current monitor
|
||||||
alt + {_, shift} + Tab
|
alt + {_, shift} + Tab
|
||||||
bspc desktop -f {next,prev}.local
|
bspc desktop -f {next,prev}.local
|
||||||
@ -84,30 +80,22 @@ alt + {_, shift} + Tab
|
|||||||
alt + a
|
alt + a
|
||||||
bspc desktop -f last
|
bspc desktop -f last
|
||||||
|
|
||||||
# Focus a certain desktop
|
|
||||||
super + {1-9,0}
|
|
||||||
bspc desktop -f '^{1-9,10}'
|
|
||||||
|
|
||||||
# Switch between tiled and monocle desktop layouts
|
# Switch between tiled and monocle desktop layouts
|
||||||
super + f
|
super + c
|
||||||
bspc desktop -l next
|
bspc desktop -l next
|
||||||
|
|
||||||
# =====================
|
# =====================
|
||||||
# ===== Preselect =====
|
# ===== Preselect =====
|
||||||
# =====================
|
# =====================
|
||||||
|
|
||||||
# Preselect where windows go
|
# Preselect where new nodes go
|
||||||
super + ctrl + {h,j,k,l}
|
super + ctrl + {h,j,k,l,space}
|
||||||
bspc node -p {west,south,north,east}
|
bspc node -p {west,south,north,east,cancel}
|
||||||
|
|
||||||
# Preselect the ratio of windows
|
# Preselect the ratio of new nodes
|
||||||
super + ctrl + {1-9}
|
super + ctrl + {1-9}
|
||||||
bspc node -o 0.{1-9}
|
bspc node -o 0.{1-9}
|
||||||
|
|
||||||
# Cancel the preselection for the focused node
|
|
||||||
super + ctrl + space
|
|
||||||
bspc node -p cancel
|
|
||||||
|
|
||||||
# ======================
|
# ======================
|
||||||
# ======= Resize =======
|
# ======= Resize =======
|
||||||
# ======================
|
# ======================
|
||||||
|
Loading…
Reference in New Issue
Block a user