tChanged popup look a bit - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 11089450e8219f68256228a435da2956d54f57ac
(DIR) parent 12a28580b7834b977cf6ffe3ccf59357ff4fdaad
(HTM) Author: z3bra <willy@mailoo.org>
Date: Tue, 6 May 2014 15:27:01 +0200
Changed popup look a bit
Diffstat:
M popup | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/popup b/popup
t@@ -15,9 +15,10 @@ hl="#ff333333"
IFS=' x' read x y <<< `xrandr | grep '*' | sed 1q | awk '{print $1}'`
-width=120
+width=144
height=20
offx=$(( x/2 - $width - 74 ))
+offx=740
offy=10
geom=${width}x${height}+${offx}+${offy}
t@@ -27,8 +28,8 @@ usage() {
}
spawn() {
- prefix='%{F#fffffe00} %{F-}'
- (echo "%{c}${prefix} $@";sleep $SLEEP) | bar -g $geom -f $font -B $bg -F $fg
+ prefix='%{F#fffffe00} %{F-}'
+ (echo "%{l}${prefix} $@";sleep $SLEEP) | bar -g $geom -f $font -B $bg -F $fg
}
loop() {
t@@ -127,6 +128,6 @@ case $1 in
;;
esac
-# can be *REALLY* annoying
+# that beep can be *REALLY* annoying
test -n "$BEEP" && beep -f 1500 -d 20 -l 100
test -n "$LOOP" && loop "$FUNC" || spawn "$TEXT"