dotfiles/bin/.bin/focusmover
Anthony Debucquoy 9eede5ef5f
First Commit
This is a first dotfiles config. I think I have a lot more to add tho...
2023-10-24 23:29:07 +02:00

14 lines
428 B
Bash
Executable File

#!/bin/sh
#Focus windows by direction, works with multihead
#called like this in sxhkdrc:
#super + {a,s,w,d}
# focusmover {west,south,north,east}
bspc config pointer_follows_monitor true; \
bspc config pointer_follows_focus true; \
dir=$@; \
if ! bspc node -f $dir; then \
bspc monitor -f $dir; \
fi; \
bspc config pointer_follows_monitor false; \
bspc config pointer_follows_focus false