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/i3/config | 3 +++ 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 ++++++++ 7 files changed, 42 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') diff --git a/dot_config/i3/config b/dot_config/i3/config index 088a9be..cbed1b0 100644 --- a/dot_config/i3/config +++ b/dot_config/i3/config @@ -303,6 +303,7 @@ assign [class="thunderbird"] $ws4 assign [class="TelegramDesktop"] $ws5 assign [class="discord"] $ws5 assign [class="Microsoft Teams - Preview"] $ws5 +assign [class="FLTK"] $ws9 # automatic set focus new window if it opens on another workspace then the current: for_window [class=Xfce4-terminal] focus @@ -414,6 +415,8 @@ for_window [window_role="About"] floating enable for_window [class="copyq"] floating enable resize set 800 800 for_window [class="Nm-connection-editor"] floating enable for_window [class="flameshot"] floating enable +for_window [class="FLTK"] floating enable resize 700 700 +for_window [class="1Password"] floating enable resize 800 800 #for_window [class="TelegramDesktop"] floating enable resize set 800 800 for_window [class="TelegramDesktop"] floating enable resize set 1300 1200 for_window [class="eudic"] floating enable resize set 800 800 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