wms/rwm_voyeur.sh

15 lines
296 B
Bash
Raw Normal View History

2023-03-06 19:08:25 +01:00
#!/bin/sh
wew | while read ev wid args; do
case $ev in
MAP) # focus on mappng requests
2023-03-07 02:55:30 +01:00
wattr o $wid || rwm_mainrole.sh -t
2023-03-06 19:08:25 +01:00
;;
UNMAP) # focus the top window in the servers window stack
if [ ! "$(pfw)" ]; then
2023-03-07 02:55:30 +01:00
rwm_mainrole.sh -t
2023-03-06 19:08:25 +01:00
fi
;;
esac
done