Skip to content

norpol/lesomnia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

lesomnia - Less insomnia

lesomnia is an ugly hack I made the last minutes before going to bed, deciding I want to wake up the next day with music - played by my lovely laptop which rests next to me.

Usage (non of the arguments are optional):

./lesomnia https://www.youtube.com/watch\?v\=Fow7iUaKrq4 09:30
./lesomnia ~/Music/Artist/Album42/ 10:30

You can control mpv via. an ipc-socket. Example:

$ socat - UNIX-CONNECT:/tmp/mpv.socket
pause
{"event":"pause"}
pause
{"event":"unpause"}

Issues:

  • If it's currently > 12:00, rtcwake will wakeup the next day

About

lesomnia - Less Insomnia Alarm Clock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages