wms/rwm_switcher.sh
rootniformaticaservice 26efa5d809 code changes
2023-03-09 01:41:12 -03:00

12 lines
316 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)
rwm_mainrole.sh "$TARGET" # focus target