Skip to content

Wake Up Call (wuc) - Randomize your songs to wake you up in the morning.

Notifications You must be signed in to change notification settings

pedrochaves/wake-up-call

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Wake Up Call (wuc)

A bash script that randomize your songs chooses one to wake you up! Put this script to run in your cron and it should wake you up with a different song everytime, without the fear of starting to hate the song you liked before you put it in your phone to wake you up (we all have that song).

Made and tested only in Ubuntu. Other distributions at your own risk, but should work fine if it's Debian-based.**

Install

Really simple, actually.

git clone [email protected]:pedrochaves/wake-up-call.git
cd wake-up-call
chmod +x install.sh

# sudo or run as root, whichever you prefer
sudo ./install.sh 

Usage

Play a random song

wuc path/to/folder

Stop the song currently playing

wuc -s

(this actually is a shortcut to mocp -s)

The wake up call

Add a line to your /etc/crontab file to the our you want to wake, and tadah! For some weird reason that I haven't found out yet, if you tell cron to run wuc as root, you can't stop the song unless you kill the mocp process, so I suggest you use a different user, so you can use mocp -s to stop it

Example:

# Waking up at 6AM
0 6   * * *   pedro    wuc /home/pedro/Music

TODO

  • Add support for logging

About

Wake Up Call (wuc) - Randomize your songs to wake you up in the morning.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages