diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-05-26 15:46:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-05-26 15:46:58 -0300 |
commit | 66519702fc77702216aad6a86076918660373cd9 (patch) | |
tree | f1474775ce8627c5ae96ef18b07415d092b08e9e /xalarm | |
parent | ea0e02a5e78021c545902fc0ad61a0eccf9c24e5 (diff) | |
download | utils-x11-66519702fc77702216aad6a86076918660373cd9.tar.gz utils-x11-66519702fc77702216aad6a86076918660373cd9.tar.bz2 |
Xalarm: loop: add a simpler counter
Diffstat (limited to 'xalarm')
-rwxr-xr-x | xalarm | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |