From 788a4c368f74c251bdf5bd78705eec664971530b Mon Sep 17 00:00:00 2001 From: Daniel Sissom Date: Thu, 23 Apr 2020 17:55:21 -0500 Subject: [PATCH] Added bspwm receptacle hotkeys. --- sxhkd/sxhkdrc | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index 824e02d..3ec7440 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -105,7 +105,7 @@ alt + apostrophe # send window to preselection alt + Return - bspc node --to-node last.!automatic + bspc node --to-node last.\!automatic --follow # select splitting ratio of window alt + ctrl + {1-9} @@ -119,12 +119,28 @@ alt + {_,shift + }c alt + shift + b bspc node --swap biggest -# insert receptacle, or clear receptacles on current desktop -alt + {_,shift} + r - insert={true,false}; \ - $insert && bspc node --insert-receptacle || \ +# insert receptacle +alt + r + bspc node --insert-receptacle + +# clear receptacles on current desktop +alt + shift + r for win in `bspc query -N -n .leaf.\!window.local`; do bspc node $win --kill; done +# send window to receptacle on current desktop +alt + super + Return + bspc node --to-node `bspc query -N -n .leaf.\!window.local` --follow + +# move node to adjacent receptacle (this doesn't seem to work...) +alt + ctrl + super + {h,j,k,l} + bspc node --to-node `bspc query -N -n {west,south,north,east}` + +# move node to receptacle on previous/next monitor/desktop +alt + {_,shift +} super + bracket{left,right} + type={monitor,desktop}; \ + direction={prev,next}; \ + bspc node --to-node `bspc query -N --$type $direction -n .leaf.\!window` --follow + # make fullscreen across all monitors super + alt + f bspc node --state \~floating; xdotool getactivewindow windowsize 5920 1080 windowmove 0 0