tupdated popup style - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 3db9d8b7dfa9e118e7466d9a8ef4c822448e2811
(DIR) parent c0134469d9efa0675cb9682774ac52f1bbca260e
(HTM) Author: z3bra <willy@mailoo.org>
Date: Tue, 9 Dec 2014 01:12:42 +0100
updated popup style
Diffstat:
M popup | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
---
(DIR) diff --git a/popup b/popup
t@@ -10,17 +10,18 @@ ALSACHANNEL=$(amixer | sed "1s/^.*'\(.*\)'.*$/\1/p;d")
# bar options
font='-*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*'
-font="$font,-*-gohufont-medium-*-*--11-*-*-*-*-*-iso10646-1"
-bg="#ff1d1d1d"
+font="$font,-*-profont-medium-*-*--12-*-*-*-*-*-*-1"
+bg="#ff161616"
fg="#ffffffff"
hl="#ff443232"
IFS=' x' read x y <<< `xrandr | grep '*' | sed 1q | awk '{print $1}'`
width=300
-height=30
+height=20
offx=$(( x - $width - 10 ))
-offy=$(( y - $height - 10 ))
+#offy=$(( y - $height - 10 ))
+offy=10
title=""
geom=${width}x${height}+${offx}+${offy}
t@@ -31,7 +32,7 @@ usage() {
spawn() {
prefix="%{F${fg}} ${title} %{F-}"
- (echo "%{l}${prefix} %{r}$@ ";sleep $SLEEP) | bar -g $geom -f $font -B $bg -F $fg
+ (echo "%{l}${prefix} %{r}$@ ";sleep $SLEEP) | bar -d -g $geom -f $font -B $bg -F $fg
}
loop() {
t@@ -65,9 +66,9 @@ volumebar() {
for v in $(seq 1 $((max - 1))); do
if [ "$v" -lt "$cur" ]; then
- val="$val%{F${fg}}──"
+ val="$val%{F${fg}}xx"
else
- val="$val%{F${hl}}──"
+ val="$val%{F${hl}}xx"
fi
done