add systemd user service for notifying calendar events
parent
e7ec3b170a
commit
455bf63916
2
links
2
links
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=Run some crap
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env fish --command='$_agw_dir_scripts/hourly'
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Run some crap every hour
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1h
|
||||
OnUnitActiveSec=1h
|
||||
Unit=marrub.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Reference in New Issue