tshm
1/31/2014 - 5:37 AM

dzen_awesomelayout.sh

#!/bin/sh
LANG=C
FG="white"
BG="#555"
W=300
X=200
Y=20
GEOM="-fg $FG -bg $BG -y $Y -x $X -w $W"

(dzen2 $GEOM -fn rk16 -p -m -l 6 \
 -e 'onstart=uncollapse;button1=menuprint,exit;leaveslave=exit'\
<<-EOF
Layout Menu
0. Tile
1. TileLeft
2. Max
3. Spiral
4. Dwindle
5. Floating
EOF
) | awk -F. '{print "0 tag_setlayout",$1}' |~/bin/awesome-client