2023-03-06 19:08:25 +01:00
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
2023-03-07 14:01:29 +01:00
|
|
|
|
## snooping on xorg window events and doing some things ##
|
|
|
|
|
|
2023-03-06 19:08:25 +01:00
|
|
|
|
wew | while read ev wid args; do
|
|
|
|
|
case $ev in
|
|
|
|
|
MAP) # focus on mappng requests
|
2023-03-20 02:46:41 +01:00
|
|
|
|
wattr o $wid || wms_mainrole.sh -t
|
2023-03-06 19:08:25 +01:00
|
|
|
|
;;
|
|
|
|
|
UNMAP) # focus the top window in the server’s window stack
|
|
|
|
|
if [ ! "$(pfw)" ]; then
|
2023-03-20 02:46:41 +01:00
|
|
|
|
wms_mainrole.sh -t
|
2023-03-06 19:08:25 +01:00
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
done
|