dots

Personal dotfiles
git clone git://git.gormless.xyz/dots.git
Log | Files | Refs

yawee (611B)


      1 #!/bin/sh
      2 
      3 while IFS=: read ev wid; do
      4     case $ev in
      5         # window creation: center window on the screen (except docks, menus or similar)
      6         16) wattr o $wid || corner md $wid ;;
      7 
      8         # mapping requests: just set a special border for docks, menus and
      9         # similar. Focus other windows
     10         19) wattr o $wid \
     11             && chwb -s 2 -c 0x323232 $wid \
     12             || focus $wid ;;
     13 
     14         # when a window gets deleted, focus another one
     15         18) wattr $(pfw) || focus prev 2>/dev/null;;
     16 
     17         # Focus windows when the mouse cursor enter them
     18         7) focus $wid ;;
     19     esac
     20 done