wms/wms_switcher.sh

14 lines
323 B
Bash
Raw Normal View History

2023-03-06 19:08:25 +01:00
#!/bin/sh
2023-03-07 14:01:29 +01:00
## switch between windows ##
2023-03-20 02:46:41 +01:00
. $HOME/.config/wms/wms_var
2023-03-06 19:08:25 +01:00
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)
2023-04-05 20:32:26 +02:00
sleep .1;
2023-03-20 02:46:41 +01:00
wms_mainrole.sh "$TARGET" # focus target