From 0dfdabd3d7c2aaee37900103c37a96317f3ada07 Mon Sep 17 00:00:00 2001 From: Justin Gassner Date: Wed, 10 Jan 2024 13:29:11 +0100 Subject: config --- .config/systemd/user/default.target.wants/ledsoff.service | 1 + .config/systemd/user/ledsoff.service | 9 +++++++++ .config/systemd/user/nextcloud-sync.service | 8 ++++++++ .config/systemd/user/nextcloud-sync.timer | 10 ++++++++++ .config/systemd/user/timers.target.wants/borgmatic-user.timer | 1 + .config/systemd/user/timers.target.wants/nextcloud-sync.timer | 1 + .config/systemd/user/timers.target.wants/yt-dlp.timer | 1 + .config/systemd/user/yt-dlp.service | 9 +++++++++ .config/systemd/user/yt-dlp.timer | 10 ++++++++++ 9 files changed, 50 insertions(+) create mode 120000 .config/systemd/user/default.target.wants/ledsoff.service create mode 100644 .config/systemd/user/ledsoff.service create mode 100644 .config/systemd/user/nextcloud-sync.service create mode 100644 .config/systemd/user/nextcloud-sync.timer create mode 120000 .config/systemd/user/timers.target.wants/borgmatic-user.timer create mode 120000 .config/systemd/user/timers.target.wants/nextcloud-sync.timer create mode 120000 .config/systemd/user/timers.target.wants/yt-dlp.timer create mode 100644 .config/systemd/user/yt-dlp.service create mode 100644 .config/systemd/user/yt-dlp.timer (limited to '.config/systemd') diff --git a/.config/systemd/user/default.target.wants/ledsoff.service b/.config/systemd/user/default.target.wants/ledsoff.service new file mode 120000 index 0000000..fe8c928 --- /dev/null +++ b/.config/systemd/user/default.target.wants/ledsoff.service @@ -0,0 +1 @@ +/home/justin/.config/systemd/user/ledsoff.service \ No newline at end of file diff --git a/.config/systemd/user/ledsoff.service b/.config/systemd/user/ledsoff.service new file mode 100644 index 0000000..ed3c77d --- /dev/null +++ b/.config/systemd/user/ledsoff.service @@ -0,0 +1,9 @@ +[Unit] +Description=Turn various LEDs off on startup + +[Service] +Type=oneshot +ExecStart=/home/justin/.local/bin/ledsoff + +[Install] +WantedBy=default.target diff --git a/.config/systemd/user/nextcloud-sync.service b/.config/systemd/user/nextcloud-sync.service new file mode 100644 index 0000000..48522a9 --- /dev/null +++ b/.config/systemd/user/nextcloud-sync.service @@ -0,0 +1,8 @@ +[Unit] +Description=Sync with Nextcloud +Wants=network-online.target +After=network-online.target + +[Service] +Type=oneshot +ExecStart=/home/justin/.local/bin/jxir-cloud-sync diff --git a/.config/systemd/user/nextcloud-sync.timer b/.config/systemd/user/nextcloud-sync.timer new file mode 100644 index 0000000..ee174d7 --- /dev/null +++ b/.config/systemd/user/nextcloud-sync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Sync with Nextcloud every hour + +[Timer] +OnCalendar=hourly +RandomizedDelaySec=5min +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/.config/systemd/user/timers.target.wants/borgmatic-user.timer b/.config/systemd/user/timers.target.wants/borgmatic-user.timer new file mode 120000 index 0000000..f4e0b9f --- /dev/null +++ b/.config/systemd/user/timers.target.wants/borgmatic-user.timer @@ -0,0 +1 @@ +/usr/lib/systemd/user/borgmatic-user.timer \ No newline at end of file diff --git a/.config/systemd/user/timers.target.wants/nextcloud-sync.timer b/.config/systemd/user/timers.target.wants/nextcloud-sync.timer new file mode 120000 index 0000000..017a827 --- /dev/null +++ b/.config/systemd/user/timers.target.wants/nextcloud-sync.timer @@ -0,0 +1 @@ +/home/justin/.config/systemd/user/nextcloud-sync.timer \ No newline at end of file diff --git a/.config/systemd/user/timers.target.wants/yt-dlp.timer b/.config/systemd/user/timers.target.wants/yt-dlp.timer new file mode 120000 index 0000000..4aa2266 --- /dev/null +++ b/.config/systemd/user/timers.target.wants/yt-dlp.timer @@ -0,0 +1 @@ +/home/justin/.config/systemd/user/yt-dlp.timer \ No newline at end of file diff --git a/.config/systemd/user/yt-dlp.service b/.config/systemd/user/yt-dlp.service new file mode 100644 index 0000000..8d8d66c --- /dev/null +++ b/.config/systemd/user/yt-dlp.service @@ -0,0 +1,9 @@ +[Unit] +Description=Download new YouTube videos +Wants=network-online.target +After=network-online.target + +[Service] +Type=oneshot +ExecStart=/home/justin/videos/youtube/download +ExecStart=/home/justin/videos/gabi-fastner/download diff --git a/.config/systemd/user/yt-dlp.timer b/.config/systemd/user/yt-dlp.timer new file mode 100644 index 0000000..34329cb --- /dev/null +++ b/.config/systemd/user/yt-dlp.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Download new YouTube videos hourly + +[Timer] +OnCalendar=00/1:00 +RandomizedDelaySec=10min +Persistent=true + +[Install] +WantedBy=timers.target -- cgit v1.2.3-54-g00ecf