litle changes.

This commit is contained in:
#root_informatica 2024-08-23 22:31:34 -03:00
parent a5c17d10c3
commit e723b9be10

23
opt/switch.sh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/sh
## switch between windows ##
# wms_jumper.sh by @root_informatica.
. $HOME/.config/wms/wms_var
# all maped widnows.
AMW=$(lsw)
# delay.
DELAY=.2
# if any maped window exist.
if [ -n "$AMW" ]; then
# print id, class and name in xmenu.
TARGET=$(\
for wid in $(lsw); do
printf '%s\n' "$wid | $(atomx WM_CLASS $wid) | $(wname $wid)"
done | cut -c 1-100 | $XMENU | cut -d '|' -f 1)
sleep $DELAY &&
wms_focuser.sh "$TARGET" # focus target
fi