Refactor codebase to use nix modules
This commit is contained in:
parent
a4735423b4
commit
ffada2703c
114 changed files with 1018 additions and 744 deletions
8
hmModules/services/timers/scripts/notify-time.sh
Executable file
8
hmModules/services/timers/scripts/notify-time.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue