From 9595c8093d47b8253de19cb50a7538095a724c89 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sat, 20 Oct 2018 10:16:00 -0400 Subject: [PATCH] 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. --- .config/sxhkd/sxhkdrc | 36 ++++++++++++------------------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 4c809ad..63ffd9e 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -53,20 +53,12 @@ super + {_,shift} + {h,j,k,l} bspc node -{f,s} {west,south,north,east} # Switch to the next / previous node (includes monocle layout) -super + {n,m} +super + {_,shift} + n 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 -super + {x,y,l} - bspc node -g {sticky,private,locked} +super + {x,y} + bspc node -g {sticky,private} # STATES: Toggle between node states super + {t,r,f,space} @@ -76,6 +68,10 @@ super + {t,r,f,space} # ======= 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 alt + {_, shift} + Tab bspc desktop -f {next,prev}.local @@ -84,30 +80,22 @@ alt + {_, shift} + Tab alt + a 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 -super + f +super + c bspc desktop -l next # ===================== # ===== Preselect ===== # ===================== -# Preselect where windows go -super + ctrl + {h,j,k,l} - bspc node -p {west,south,north,east} +# Preselect where new nodes go +super + ctrl + {h,j,k,l,space} + bspc node -p {west,south,north,east,cancel} -# Preselect the ratio of windows +# Preselect the ratio of new nodes super + ctrl + {1-9} bspc node -o 0.{1-9} -# Cancel the preselection for the focused node -super + ctrl + space - bspc node -p cancel - # ====================== # ======= Resize ======= # ======================