Add chime to timer
This commit is contained in:
parent
3758ae8149
commit
a38b6655c1
3 changed files with 5 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ let rootPath = ./.; in
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
Type="simple";
|
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 = {
|
quarterly-time = {
|
||||||
|
|
@ -40,7 +40,7 @@ let rootPath = ./.; in
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
Type="simple";
|
Type="simple";
|
||||||
ExecStart="/home/pan/.config/timer_scripts/notify-time.sh 10000";
|
ExecStart="/home/pan/.config/timer_scripts/notify-time.sh 10000 0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
BIN
services/timers/scripts/chimes.ogg
Normal file
BIN
services/timers/scripts/chimes.ogg
Normal file
Binary file not shown.
|
|
@ -3,3 +3,6 @@
|
||||||
export DISPLAY=":0"
|
export DISPLAY=":0"
|
||||||
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
|
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
|
/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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue