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

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