wms/wms_voyeur.sh
rootniformaticaservice 583f0a44fc new sensible name
2023-03-19 22:46:41 -03:00

16 lines
356 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
## snooping on xorg window events and doing some things ##
wew | while read ev wid args; do
case $ev in
MAP) # focus on mappng requests
wattr o $wid || wms_mainrole.sh -t
;;
UNMAP) # focus the top window in the servers window stack
if [ ! "$(pfw)" ]; then
wms_mainrole.sh -t
fi
;;
esac
done