parent
8ae9fbdb1c
commit
722455262f
3 changed files with 53 additions and 6 deletions
@ -0,0 +1,24 @@ |
||||
#!/usr/bin/env sh |
||||
|
||||
TIME=$( |
||||
echo "$@" | |
||||
sed 's#h#*60m#g'| |
||||
sed 's#m#*60s#g'| |
||||
sed 's#s#*1#g'| |
||||
sed 's# #+#g' | |
||||
bc |
||||
) |
||||
|
||||
date1=$((`date +%s` + $TIME)); |
||||
while [ "$date1" -ge `date +%s` ]; do |
||||
echo -ne "$(date -u --date @$(($date1 - `date +%s`)) +%H:%M:%S) \r"; |
||||
sleep 0.1 |
||||
done |
||||
echo "Done with $@" |
||||
|
||||
while :; |
||||
do notify-send "Done with $@"; |
||||
xset dpms force off |
||||
xset dpms force on |
||||
sleep 0.5 |
||||
done |
@ -0,0 +1,22 @@ |
||||
#!/usr/bin/env sh |
||||
sxmo_keyboard.sh on & |
||||
TIMEINPUT=$( |
||||
echo "1h |
||||
10m |
||||
9m |
||||
8m |
||||
7m |
||||
6m |
||||
5m |
||||
4m |
||||
3m |
||||
2m |
||||
1m |
||||
30s |
||||
Close Menu" | dmenu -p Timer -c -fn "Terminus-30" -l 20 |
||||
) |
||||
sxmo_keyboard.sh off & |
||||
[ "Close Menu" = $TIMEINPUT ] && exit 0 |
||||
|
||||
st -f Monospace-50 -e sxmo_timer.sh $TIMEINPUT |
||||
|
Loading…
Reference in new issue