scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit c9f35d0c264261bda96e4a04f5050dc711aeef64
parent a5234b88fbe76e3fe0f45a081fba4e59dc2c792c
Author: z3bra <willy@mailoo.org>
Date:   Mon Mar 30 22:57:39 +0200

improved wmutils scripts

Diffstat:
groaw | 2+-
vroum | 8++++----
yawee | 4++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/groaw b/groaw @@ -3,7 +3,7 @@ # z3bra - 2014 (c) wtfpl # groaw - group, organize and arrange windows (or just a bear behind you) -GROOT=$HOME/.groaw.d +GROOT=/tmp/groaw.d GNUMBER=3 usage() { diff --git a/vroum b/vroum @@ -4,14 +4,14 @@ # window focus wrapper that sets borders and can focus next/previous window BW=${BW:-2} # border width -ACTIVE=${ACTIVE:-0xcc6464} # active border color -INACTIVE=${INACTIVE:-0x433333} # inactive border color +ACTIVE=${ACTIVE:-0xffffff} # active border color +INACTIVE=${INACTIVE:-0x323232} # inactive border color # get current window id CUR=$(pfw) usage() { - echo "usage: $(basename $0) <next|prev|wid>" + echo "usage: $(basename $0) <next|prev|wid>" >&2 exit 1 } @@ -43,5 +43,5 @@ test -z "$wid" && { echo "$(basename $0): no window to focus" >&2; exit 1; } chwso -r $wid # put it on top of the stack wtf $wid # set focus on it -#setborder active $wid # activate the new window +setborder active $wid # activate the new window setborder inactive $CUR # set inactive border on current window diff --git a/yawee b/yawee @@ -3,8 +3,8 @@ while IFS=: read ev wid; do case $ev in # window creation - 16) wattr o $wid \ - && chwb -s 2 -c 0x564444 $wid \ + 16) wattr m $wid && wattr o $wid \ + && chwb -s 2 -c 0x444444 $wid \ || { corner md $wid; vroum $wid; } ;; # focus next window when deleting focused window