Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

General Questions • SOLVED - display clock recommendations

$
0
0
For the life of me I couldn't remember the name of the program but knew it was on my old D2 hard drive. Then I though I'd just open the case of the Mrs old Dell blow me if I hadn't left the drive inside when I swapped it. Anyway I found it and here's the source if it helps.
Also a fork that does Alarm

https://xyne.dev/projects/pystopwatch/
https://github.com/CartoonFan/pystopwatch_mod

this is what I use :-)

Code:

#!/bin/bashechoecho "The time format = hours colon minutes e.g 07:30 for 7:30AM!"echoprintf "What time are you setting this alarm for? "read dateechoecho "Okay! Alarm" set for $(date --date="$date").echoecho "Volume will be set to 100%" sleep $(( $(date --date="$date" +%s) - $(date +%s) ));for x in `amixer controls  | grep playback` ; do amixer cset "${x}" 100% ; doneechoecho "Wake up you lazy bum!"echoecho "Wake up you'll be late for work!"echoecho "Wake up your dog will start barking"echoecho "Wake up your crazy wife will shout at you!"echoecho "Wake up you lazy bum and switch the alarm off it's Sunday!"echowhile true; do# set your player aplay or mpv etc. then set the path to your sound file.   /usr/bin/ogg123 ~/.free-software-song-sleeping-memories.ogg   sleep 1done

Statistics: Posted by oswaldkelso — 2024-03-30 23:11 — Replies 8 — Views 339



Viewing all articles
Browse latest Browse all 3567

Trending Articles