Skip to content

Instantly share code, notes, and snippets.

@3rdp
Created July 13, 2017 19:46
Show Gist options
  • Save 3rdp/e8ee51d07db6332a3fa4b62c9d358a47 to your computer and use it in GitHub Desktop.
Save 3rdp/e8ee51d07db6332a3fa4b62c9d358a47 to your computer and use it in GitHub Desktop.
#!/bin/bash
ALARM='today 22:45'
SOUND='/home/sasha/Музика/'
sudo rtcwake -d rtc0 -m mem -t $(date +%s -d "$ALARM") -v && vlc -L $SOUND
@iemeka
Copy link

iemeka commented Sep 24, 2017

hello,
was looking for ways to make my pc an alarm, then saw this and it worked fine.
I into linux, can you recommend any book or tutorial to learn bash?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment