From b0f94f1fc89b23903a3a442ceec34707449d65b1 Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 8 Oct 2024 19:44:07 +0200 Subject: [PATCH] khal: remove sync timer in favor of oneshot --- khal/.config/systemd/user/vdirsyncer-sync.service | 4 ++-- khal/.config/systemd/user/vdirsyncer-sync.timer | 9 --------- setup_all.sh | 1 - 3 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 khal/.config/systemd/user/vdirsyncer-sync.timer diff --git a/khal/.config/systemd/user/vdirsyncer-sync.service b/khal/.config/systemd/user/vdirsyncer-sync.service index 9922b47..97789b4 100644 --- a/khal/.config/systemd/user/vdirsyncer-sync.service +++ b/khal/.config/systemd/user/vdirsyncer-sync.service @@ -1,10 +1,10 @@ [Unit] -Description=Sync vdirsyncer with configured remotes (timer) +Description=Sync vdirsyncer with configured remotes (oneshot) Wants=network-online.target After=network-online.target nss-lookup.target [Service] -Type=simple +Type=oneshot ExecStart=/usr/bin/vdirsyncer sync [Install] diff --git a/khal/.config/systemd/user/vdirsyncer-sync.timer b/khal/.config/systemd/user/vdirsyncer-sync.timer deleted file mode 100644 index 1153b1c..0000000 --- a/khal/.config/systemd/user/vdirsyncer-sync.timer +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Sync vdirsyncer with configured remotes (timer) - -[Timer] -OnBootSec=1min -OnUnitActiveSec=1h - -[Install] -WantedBy=timers.target \ No newline at end of file diff --git a/setup_all.sh b/setup_all.sh index 800335f..d0050f5 100755 --- a/setup_all.sh +++ b/setup_all.sh @@ -897,7 +897,6 @@ declare -a systemd_user_units=( "$base_path"/gtk/.config/systemd/user/xsettingsd.service "$base_path"/hyprland/.config/systemd/user/hypridle.service "$base_path"/khal/.config/systemd/user/vdirsyncer-sync.service - "$base_path"/khal/.config/systemd/user/vdirsyncer-sync.timer "$base_path"/nextcloud/.config/systemd/user/nextcloud-client.service "$base_path"/sway/.config/systemd/user/kanshi.service "$base_path"/sway/.config/systemd/user/swayidle.service