Files
dotfiles/X11/sxhkd/scripts/focusmover
kokopi-dev 2f27c335cf migration
2025-10-28 16:23:11 +09:00

14 lines
428 B
Bash

#!/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