wms/rwm_switcher.sh
rootniformaticaservice 51d458a88b other shit
2023-03-07 10:01:29 -03:00

13 lines
393 B
Bash
Executable file

#!/bin/sh
## switch between windows ##
. $HOME/.config/rootwm/rwm_var
TARGET=$(\
for wid in $(lsw); do # print id, class and name in xmenu
printf '%s\n' "$wid | $(atomx WM_CLASS $wid) | $(wname $wid)"
done | cut -c 1-100 | $XMENU | cut -d '|' -f 1)
sleep .1; # resolve conflicts with nowm_focuswatcher.sh using fzfmenu.sh
rwm_starship.sh "$TARGET" # focus target