Add chime to timer

This commit is contained in:
JuliaLange 2024-02-27 20:47:08 -08:00
parent 3758ae8149
commit a38b6655c1
3 changed files with 5 additions and 2 deletions

View file

@ -30,7 +30,7 @@ let rootPath = ./.; in
};
Service = {
Type="simple";
ExecStart="/home/pan/.config/timer_scripts/notify-time.sh 60000";
ExecStart="/home/pan/.config/timer_scripts/notify-time.sh 60000 1";
};
};
quarterly-time = {
@ -40,7 +40,7 @@ let rootPath = ./.; in
};
Service = {
Type="simple";
ExecStart="/home/pan/.config/timer_scripts/notify-time.sh 10000";
ExecStart="/home/pan/.config/timer_scripts/notify-time.sh 10000 0";
};
};
};

Binary file not shown.

View file

@ -3,3 +3,6 @@
export DISPLAY=":0"
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
/home/pan/.nix-profile/bin/notify-send "$(/run/current-system/sw/bin/date +%H:%M)" -t $1
if [ $2 -eq 1 ]; then
/run/current-system/sw/bin/pw-cat --volume 0.08 -p ./chimes.ogg &
fi