From 6a482bd3d3a721a1218f0eb0bd580d2759764df0 Mon Sep 17 00:00:00 2001 From: Kyattsukuro Date: Fri, 22 May 2026 23:22:39 +0200 Subject: [PATCH] moved to systemd services --- eggs/dconfNixMain/user | Bin 17871 -> 17871 bytes eggs/hypr/hyprland/exec.lua | 11 ++++++----- eggs/openrgb/OpenRGB.json | 12 ++++++------ eggs/utility/systemd/copyq.service | 14 ++++++++++++++ .../systemd/ensure_app_is_running.service | 11 ----------- .../systemd/ensure_app_is_running.timer | 9 --------- eggs/utility/systemd/kdeconnectd.service | 15 +++++++++++++++ eggs/utility/systemd/nextcloud.service | 15 +++++++++++++++ eggs/utility/systemd/waybar.service | 15 +++++++++++++++ 9 files changed, 71 insertions(+), 31 deletions(-) create mode 100644 eggs/utility/systemd/copyq.service delete mode 100644 eggs/utility/systemd/ensure_app_is_running.service delete mode 100644 eggs/utility/systemd/ensure_app_is_running.timer create mode 100644 eggs/utility/systemd/kdeconnectd.service create mode 100644 eggs/utility/systemd/nextcloud.service create mode 100644 eggs/utility/systemd/waybar.service diff --git a/eggs/dconfNixMain/user b/eggs/dconfNixMain/user index 610a70c6a86c6639478cc6493236e84fb518c3c4..e79176bad2c18dd9fc426503f70b424d0e7790d7 100644 GIT binary patch delta 1399 zcmYk5duUTv9LLXXn>L+mrDV0Wv#c#PG$ywxSfy#QjVZ(WST>=Q38GDt+vL)k#GGrI zSs}8rTI`tBD~=V!`NDKgYl+jr6cx5PDy$u{t!z%$z1V|kyTY)O!M@+J!T$K<`#s-t z&hNZ#CI*#>LFK|sfhT#>dF7xGLOO-W6G@SR{tDVA#y`(RPG5ptxP&MGN8a9est$R9 z>9Bf>+L2t2k9o$Bv}bo(ow-UTdvwvU9LUqfb4q&1zoEr~PFs@@MJQ7RwS$Il@7-UG zoW2lw1Jnm*quSa-$m#Quw?O^i4}WFJPUQ59khepFVD5*eR@R|s9*0U`%zrlT6C%CP zC`HEr!a;C&@sr_;m_TnqJ_J1iO3!|kIEkFT7dW+a3s-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4vvZ}uPRV*x!I-GTlF>RhwyuOp}D8!tlt0dFLeXG6ad1xe^@ zU@Y)bcnmqc69og%VX$rPvu-w`=f^t=JqJ8Lo~e8aIX%Cj3($+;BYnP!J4er*`x5#M zc-tCt`FEXPKR3wzUPi*@Ixw{y{82x2lU4NVkh`Ic%=_heu9lwLu^HM9rnfBCJ%hYG z?|JBx5~4Ze^1~be%E->VyYI6nO1A?mgLXZ zgmxD>4b?PJW%#W@xz^e!+pD8yJm43nG5x>mGGd90FQOT7!}>xF*zY%Tx752cnjXQJ sp&ckJ1a(Jj_=^JJ)-;cyXlXTN`i0fmQY)R!?{B$XB#q`@crtDO7lce)!2kdN diff --git a/eggs/hypr/hyprland/exec.lua b/eggs/hypr/hyprland/exec.lua index ad3efbce..711a2571 100644 --- a/eggs/hypr/hyprland/exec.lua +++ b/eggs/hypr/hyprland/exec.lua @@ -1,16 +1,17 @@ -- Exec at start hl.on("hyprland.start", function() + -- notices hl.exec_cmd(os.getenv("HOME") .. "/.local/share/until-scripts/run-at-start.sh") - hl.exec_cmd("systemctl --user start hyprpolkitagent") - hl.exec_cmd("sleep 3 && copyq --start-server") - hl.exec_cmd("uwsm app -- waybar -c " .. os.getenv("HOME") .. "/.config/waybar/bar/config.jsonc -s " .. os.getenv("HOME") .. "/.config/waybar/bar/style.css") + + -- ensure themen hl.exec_cmd("hyprctl setcursor catppuccin-frappe-mauve-cursors 16") hl.exec_cmd("dconf write /org/gnome/desktop/interface/cursor-size \"16\"") hl.exec_cmd("dconf write /org/gnome/desktop/interface/cursor-theme \"'catppuccin-frappe-mauve-cursors'\"") hl.exec_cmd("dconf write /org/gnome/desktop/interface/gtk-theme \"'catppuccin-frappe-mauve-standard+default'\"") hl.exec_cmd("hyprpaper") + + -- ensure apps hl.exec_cmd("openrgb -p " .. os.getenv("HOME") .. "/.config/OpenRGB/Cat.orp") - hl.exec_cmd("sleep 3 && uwsm app -- nextcloud --background") - hl.exec_cmd("uwsm app -- kdeconnectd &") + hl.exec_cmd("systemctl --user enable waybar.service kdeconnectd.service nextcloud.service hyprpolkitagent copyq.service") end) diff --git a/eggs/openrgb/OpenRGB.json b/eggs/openrgb/OpenRGB.json index cfb047b8..1ca3a1fa 100755 --- a/eggs/openrgb/OpenRGB.json +++ b/eggs/openrgb/OpenRGB.json @@ -2223,16 +2223,16 @@ "RunZoneChecks": false, "autoload_profiles": { "exit_profile": { - "enabled": false, - "name": "" + "enabled": true, + "name": "Off" }, "resume_profile": { - "enabled": false, - "name": "" + "enabled": true, + "name": "Cat" }, "suspend_profile": { - "enabled": false, - "name": "" + "enabled": true, + "name": "Off" } }, "exit_profile": { diff --git a/eggs/utility/systemd/copyq.service b/eggs/utility/systemd/copyq.service new file mode 100644 index 00000000..04417af7 --- /dev/null +++ b/eggs/utility/systemd/copyq.service @@ -0,0 +1,14 @@ +[Unit] +Description=Copyq Server +Documentation=https://copyq.net/ +After=default.target + +[Service] +Type=simple +ExecStart=/usr/bin/env copyq +Restart=on-failure +StandardOutput=journal +RestartSec=2 + +[Install] +WantedBy=default.target diff --git a/eggs/utility/systemd/ensure_app_is_running.service b/eggs/utility/systemd/ensure_app_is_running.service deleted file mode 100644 index 15c67f56..00000000 --- a/eggs/utility/systemd/ensure_app_is_running.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=ensure_app_is_running.service - -[Service] -Type=oneshot -# https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#Specifiers -ExecStart=/usr/bin/env bash %h/.local/share/until-scripts/ensure_app_is_running.sh run -Restart=no - -[Install] -WantedBy=multi-user.target diff --git a/eggs/utility/systemd/ensure_app_is_running.timer b/eggs/utility/systemd/ensure_app_is_running.timer deleted file mode 100644 index 915d68cf..00000000 --- a/eggs/utility/systemd/ensure_app_is_running.timer +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Run ensure_app_is_running periodicly - -[Timer] -Unit=ensure_app_is_running.service -OnUnitInactiveSec=60s - -[Install] -WantedBy=timers.target diff --git a/eggs/utility/systemd/kdeconnectd.service b/eggs/utility/systemd/kdeconnectd.service new file mode 100644 index 00000000..7ca263db --- /dev/null +++ b/eggs/utility/systemd/kdeconnectd.service @@ -0,0 +1,15 @@ +[Unit] +Description=KdeConnectd +Documentation=https://kdeconnect.kde.org/ +After=graphical-session.target +Wants=graphical-session.target + +[Service] +Type=simple +ExecStart=/usr/bin/env kdeconnectd +Restart=on-failure +StandardOutput=journal +RestartSec=2 + +[Install] +WantedBy=default.target diff --git a/eggs/utility/systemd/nextcloud.service b/eggs/utility/systemd/nextcloud.service new file mode 100644 index 00000000..643b0a5a --- /dev/null +++ b/eggs/utility/systemd/nextcloud.service @@ -0,0 +1,15 @@ +[Unit] +Description=Nextcloud Client +Documentation=https://nextcloud.com/install/ +After=graphical-session.target +Wants=graphical-session.target + +[Service] +Type=simple +ExecStart=/usr/bin/env nextcloud --background +Restart=on-failure +StandardOutput=journal +RestartSec=2 + +[Install] +WantedBy=default.target diff --git a/eggs/utility/systemd/waybar.service b/eggs/utility/systemd/waybar.service new file mode 100644 index 00000000..82a18471 --- /dev/null +++ b/eggs/utility/systemd/waybar.service @@ -0,0 +1,15 @@ +[Unit] +Description=Waybar status bar +Documentation=https://github.com/Alexays/Waybar +After=graphical-session.target +Wants=graphical-session.target + +[Service] +Type=simple +ExecStart=/usr/bin/env waybar -c %h/.config/waybar/bar/config.jsonc -s %h/.config/waybar/bar/style.css +Restart=on-failure +StandardOutput=journal +RestartSec=2 + +[Install] +WantedBy=default.target