16 lines
356 B
Bash
Executable file
16 lines
356 B
Bash
Executable file
#!/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 server’s window stack
|
||
if [ ! "$(pfw)" ]; then
|
||
wms_mainrole.sh -t
|
||
fi
|
||
;;
|
||
esac
|
||
done
|