tyawee: focus another window upon deletion events - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit 7759329235cc0ce29a8492c6b22ccd1d1b997947
 (DIR) parent 63d856c03be70f39d3b411059877a02b329ce813
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Thu,  5 Feb 2015 14:11:14 +0100
       
       yawee: focus another window upon deletion events
       
       Diffstat:
         M yawee                               |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/yawee b/yawee
       t@@ -6,7 +6,9 @@ while IFS=: read ev wid; do
                16) wattr o $wid \
                        && chwb -s 2 -c 0x564444 $wid \
                        || { corner md $wid; vroum $wid; } ;;
       -        18) vroum next 2>/dev/null;;
       +
       +        # focus next window when deleting focused window
       +        18) wattr $(pfw) || vroum next 2>/dev/null;;
        
                # entering window
                7) wattr o $wid || vroum $wid ;;