Skip to content

Instantly share code, notes, and snippets.

View vwochnik's full-sized avatar

Vincent Wochnik vwochnik

View GitHub Profile
@vwochnik
vwochnik / alarm.sh
Last active January 30, 2022 12:15
Alarm clock in bash
#!/bin/bash
# add to sudoers
# username ALL = (root) NOPASSWD: /usr/sbin/rtcwake
DATE="$@"
SONG="$HOME/.usr/share/alarm.mp3"
if ! command -v mplayer &>/dev/null
then