aboutsummaryrefslogtreecommitdiff
path: root/xalarm
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-05-26 15:46:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-05-26 15:46:58 -0300
commit66519702fc77702216aad6a86076918660373cd9 (patch)
treef1474775ce8627c5ae96ef18b07415d092b08e9e /xalarm
parentea0e02a5e78021c545902fc0ad61a0eccf9c24e5 (diff)
downloadutils-x11-66519702fc77702216aad6a86076918660373cd9.tar.gz
utils-x11-66519702fc77702216aad6a86076918660373cd9.tar.bz2
Xalarm: loop: add a simpler counter
Diffstat (limited to 'xalarm')
-rwxr-xr-xxalarm3
1 files changed, 2 insertions, 1 deletions
diff --git a/xalarm b/xalarm
index 575cc58..df613e5 100755
--- a/xalarm
+++ b/xalarm
@@ -31,7 +31,8 @@ function xalarm_set {
# Sleep implementation
sleep $DELAY
if which sm &> /dev/null; then
- sm -f '#ffffff' -b '#1c1c1c' $MESSAGE
+ #sm -f '#ffffff' -b '#1c1c1c' $MESSAGE
+ (count=0; while sleep 1; do let count++; echo $MESSAGE - $count; echo -e '\f'; done) | sm -f '#ffffff' -b '#1c1c1c' -
else
xmessage $MESSAGE
fi