wms/rwm_voyeur.sh
rootniformaticaservice e83acb54de several changes
2023-03-06 22:55:30 -03:00

14 lines
296 B
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
wew | while read ev wid args; do
case $ev in
MAP) # focus on mappng requests
wattr o $wid || rwm_mainrole.sh -t
;;
UNMAP) # focus the top window in the servers window stack
if [ ! "$(pfw)" ]; then
rwm_mainrole.sh -t
fi
;;
esac
done