You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
223 B

#!/usr/bin/env sh
HEIGHT=30
W=$1
FULLW=$(
xdpyinfo |
grep 'dimensions' |
egrep -o "[0-9]+x[0-9]+ pixels" |
sed "s/x.*//"
)
OFFX=$(echo $FULLW - $W - 2 | bc)
sh -c "echo $2 | dzen2 -p 2 -h $HEIGHT -x $OFFX -y 30" &