add systemd user service for notifying calendar events

master
an 2019-08-17 20:34:01 -04:00
parent e7ec3b170a
commit 455bf63916
4 changed files with 40 additions and 0 deletions

2
links
View File

@ -22,6 +22,8 @@ system/fcitx/conf ~/.config/fcitx/conf
system/fcitx/config ~/.config/fcitx/config
system/fcitx/data ~/.config/fcitx/data
system/fcitx/profile ~/.config/fcitx/profile
system/services/marrub.service ~/.config/systemd/user/marrub.service
system/services/marrub.timer ~/.config/systemd/user/marrub.timer
themes/ripcord.json ~/.local/share/Ripcord/custom_theme.json
vim/vconf ~/.vim/vconf
vim/vimrc ~/.vim/vimrc

20
scripts/hourly Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env fish
# vim: syntax=fish:
if not test "$DISPLAY"
exit 0
end
vdirsyncer sync
set content (khal at)
if test "$content" != "No events"
notify-send \
-a 'Calendar Reminder' \
-u critical \
-i dialog-information \
"$content"
end
## EOF

View File

@ -0,0 +1,8 @@
[Unit]
Description=Run some crap
[Service]
ExecStart=/usr/bin/env fish --command='$_agw_dir_scripts/hourly'
[Install]
WantedBy=basic.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=Run some crap every hour
[Timer]
OnBootSec=1h
OnUnitActiveSec=1h
Unit=marrub.service
[Install]
WantedBy=timers.target