From 6689b3ce97a04f23e2d033e161c4a3a80b78b9e1 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Mon, 9 Jan 2023 16:38:12 -0800 Subject: systemd: add weylus --- dot_config/systemd/user/eos-update-notifier.service | 10 ++++++++++ dot_config/systemd/user/eos-update-notifier.timer | 11 +++++++++++ .../user/multi-user.target.wants/symlink_weylus.service | 1 + dot_config/systemd/user/protonvpn_reconnect.service | 8 ++++++++ .../timers.target.wants/symlink_eos-update-notifier.timer | 1 + dot_config/systemd/user/weylus.service | 8 ++++++++ 6 files changed, 39 insertions(+) create mode 100644 dot_config/systemd/user/eos-update-notifier.service create mode 100644 dot_config/systemd/user/eos-update-notifier.timer create mode 100644 dot_config/systemd/user/multi-user.target.wants/symlink_weylus.service create mode 100644 dot_config/systemd/user/protonvpn_reconnect.service create mode 100644 dot_config/systemd/user/timers.target.wants/symlink_eos-update-notifier.timer create mode 100644 dot_config/systemd/user/weylus.service (limited to 'dot_config/systemd') diff --git a/dot_config/systemd/user/eos-update-notifier.service b/dot_config/systemd/user/eos-update-notifier.service new file mode 100644 index 0000000..a052a86 --- /dev/null +++ b/dot_config/systemd/user/eos-update-notifier.service @@ -0,0 +1,10 @@ +[Unit] +Description=EOS update notifier service + +[Service] +Type=oneshot +Environment=DISPLAY=:0 +ExecStart=/usr/bin/eos-update-notifier -systemd + +[Install] +WantedBy=eos-update-notifier.timer diff --git a/dot_config/systemd/user/eos-update-notifier.timer b/dot_config/systemd/user/eos-update-notifier.timer new file mode 100644 index 0000000..7b4f365 --- /dev/null +++ b/dot_config/systemd/user/eos-update-notifier.timer @@ -0,0 +1,11 @@ +[Unit] +Description=EOS update notifier runs periodically (weekly) and soon after a reboot + +[Timer] +Persistent=false +OnStartupSec=300 seconds +OnCalendar=weekly +# Persistent=true + +[Install] +WantedBy=timers.target diff --git a/dot_config/systemd/user/multi-user.target.wants/symlink_weylus.service b/dot_config/systemd/user/multi-user.target.wants/symlink_weylus.service new file mode 100644 index 0000000..8190cc5 --- /dev/null +++ b/dot_config/systemd/user/multi-user.target.wants/symlink_weylus.service @@ -0,0 +1 @@ +/home/clarkzjw/.config/systemd/user/weylus.service diff --git a/dot_config/systemd/user/protonvpn_reconnect.service b/dot_config/systemd/user/protonvpn_reconnect.service new file mode 100644 index 0000000..fc500d9 --- /dev/null +++ b/dot_config/systemd/user/protonvpn_reconnect.service @@ -0,0 +1,8 @@ + +# v3.14.0 + +[Unit] +Description=Proton VPN Reconnector + +[Service] +ExecStart=/usr/bin/python /usr/lib/python3.10/site-packages/protonvpn_nm_lib/daemon/dbus_daemon_reconnector.py diff --git a/dot_config/systemd/user/timers.target.wants/symlink_eos-update-notifier.timer b/dot_config/systemd/user/timers.target.wants/symlink_eos-update-notifier.timer new file mode 100644 index 0000000..92a752d --- /dev/null +++ b/dot_config/systemd/user/timers.target.wants/symlink_eos-update-notifier.timer @@ -0,0 +1 @@ +/home/clarkzjw/.config/systemd/user/eos-update-notifier.timer diff --git a/dot_config/systemd/user/weylus.service b/dot_config/systemd/user/weylus.service new file mode 100644 index 0000000..b65113e --- /dev/null +++ b/dot_config/systemd/user/weylus.service @@ -0,0 +1,8 @@ +[Unit] +Description=Weylus + +[Install] +WantedBy=multi-user.target + +[Service] +ExecStart=/usr/bin/weylus --no-gui --auto-start --access-code 2013zjw@nju --web-port 1702 --websocket-port 9001 -- cgit v1.2.3