16 lines
342 B
Bash
Executable file
16 lines
342 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_focuser.sh -t
|
||
;;
|
||
UNMAP) # focus the top window in the server’s window stack.
|
||
[ ! "$(pfw)" ] && wms_focuser.sh -t
|
||
;;
|
||
esac
|
||
done
|
||
|
||
|