Skip to content

Commit

Permalink
Fixed crontab for pulse users, will work fine with pulseaudio now.
Browse files Browse the repository at this point in the history
Made Install script by default +x
  • Loading branch information
jticket1024 committed May 10, 2018
1 parent 3b6827e commit 083c32d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Empty file modified INSTALL
100644 → 100755
Empty file.
9 changes: 3 additions & 6 deletions src/talking-clock
Original file line number Diff line number Diff line change
Expand Up @@ -222,20 +222,17 @@ if [ "$1" == "--cron" ] ; then
"1")
#Chime once per hour.
echo "# talking-clock settings" >> "$crontabFile"
echo "XDG_RUNTIME_DIR=/run/user/$UID # Make talking-clock play nice with pulseaudio" >> "$crontabFile"
echo '0 * * * * /usr/bin/talking-clock &> /dev/null' >> "$crontabFile"
echo "0 * * * * XDG_RUNTIME_DIR=/run/user/$UID /usr/bin/talking-clock &> /dev/null" >> "$crontabFile"
;;
"2")
#Chime twice per hour.
echo "# talking-clock settings" >> "$crontabFile"
echo "XDG_RUNTIME_DIR=/run/user/$UID # Make talking-clock play nice with pulseaudio" >> "$crontabFile"
echo '0,30 * * * * talking-clock &> /dev/null' >> "$crontabFile"
echo "0,30 * * * * XDG_RUNTIME_DIR=/run/user/$UID talking-clock &> /dev/null" >> "$crontabFile"
;;
"4")
#Chime four times per hour.
echo "# talking-clock settings" >> "$crontabFile"
echo "XDG_RUNTIME_DIR=/run/user/$UID # Make talking-clock play nice with pulseaudio" >> "$crontabFile"
echo '0,15,30,45 * * * * talking-clock &> /dev/null' >> "$crontabFile"
echo "0,15,30,45 * * * * XDG_RUNTIME_DIR=/run/user/$UID talking-clock &> /dev/null" >> "$crontabFile"
esac
#install the new cron file.
if [ -f/"$crontabFile" ]; then
Expand Down

0 comments on commit 083c32d

Please sign in to comment.