Fixed crontab for pulse users, will work fine with pulseaudio now.

Made Install script by default +x
This commit is contained in:
Jeremiah Ticket 2018-05-10 09:19:25 -08:00
parent 3b6827e6da
commit 083c32d354
2 changed files with 3 additions and 6 deletions

0
INSTALL Normal file → Executable file
View File

View File

@ -222,20 +222,17 @@ if [ "$1" == "--cron" ] ; then
"1") "1")
#Chime once per hour. #Chime once per hour.
echo "# talking-clock settings" >> "$crontabFile" echo "# talking-clock settings" >> "$crontabFile"
echo "XDG_RUNTIME_DIR=/run/user/$UID # Make talking-clock play nice with pulseaudio" >> "$crontabFile" echo "0 * * * * XDG_RUNTIME_DIR=/run/user/$UID /usr/bin/talking-clock &> /dev/null" >> "$crontabFile"
echo '0 * * * * /usr/bin/talking-clock &> /dev/null' >> "$crontabFile"
;; ;;
"2") "2")
#Chime twice per hour. #Chime twice per hour.
echo "# talking-clock settings" >> "$crontabFile" echo "# talking-clock settings" >> "$crontabFile"
echo "XDG_RUNTIME_DIR=/run/user/$UID # Make talking-clock play nice with pulseaudio" >> "$crontabFile" echo "0,30 * * * * XDG_RUNTIME_DIR=/run/user/$UID talking-clock &> /dev/null" >> "$crontabFile"
echo '0,30 * * * * talking-clock &> /dev/null' >> "$crontabFile"
;; ;;
"4") "4")
#Chime four times per hour. #Chime four times per hour.
echo "# talking-clock settings" >> "$crontabFile" 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 * * * * XDG_RUNTIME_DIR=/run/user/$UID talking-clock &> /dev/null" >> "$crontabFile"
echo '0,15,30,45 * * * * talking-clock &> /dev/null' >> "$crontabFile"
esac esac
#install the new cron file. #install the new cron file.
if [ -f/"$crontabFile" ]; then if [ -f/"$crontabFile" ]; then