Skip to content

konstunn/alarm.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 

Repository files navigation

alarm.sh

Morning wake up alarm menu-driven bash script. Uses mainly cron scheduler and audacious audio player.

Features

  1. Add / remove, set (time, days of week, audio track), enable / disable several alarm jobs.
  2. Robust repeated run.
  3. Sets system sound volume using pulse audio. Smooth volume incrementation.
  4. Logging.
  5. Crontab backup.
  6. Desktop notifications.
  7. Time spelling.

Usage

  1. Use text menu interface to manage alarm jobs (add / remove, set, enable / disable).
  2. issue $ sudo rtcwake -m no -t $(date +%s -d '<time_to_wake_your_pc>'); sudo pm-suspend
  3. When the time has come to be awaken and music is playing, issue killall audacious and go back to sleep. :-)
  4. When your are definitely awaken, issue killall audacious ; killall alarm.sh and go brush your teeth. :-)

Dependencies

  • bash
  • gawk
  • sed
  • audacious
  • cron (crontab utility)
  • pulseaudio-utils (pactl utility)
  • libnotify-bin (notify-send utility)
  • festival

TODO

Integrate rtcwake, pm-suspend Port to Python to make it cross-platform?

Bugs

Many. But it yet works and wakes up good. At least for me. I use it on a regular basis.

Contacts

Feel free to create, open an issue if you have suggestions, questions, difficulties or problems while using alarm.sh.

Releases

No releases published

Packages

No packages published

Languages