wms/wms_switcher.sh
rootniformaticaservice e38b7f3f27 Code changes.
2023-04-05 15:32:26 -03:00

13 lines
323 B
Bash
Executable file

#!/bin/sh
## switch between windows ##
. $HOME/.config/wms/wms_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;
wms_mainrole.sh "$TARGET" # focus target