diff options
| -rw-r--r-- | raveos-hyprland-theme/raveos-hyprland-apply.sh | 7 | ||||
| -rw-r--r-- | raveos-hyprland-theme/raveos-hyprland-session-init.sh | 11 | ||||
| -rw-r--r-- | raveos-hyprland-theme/theme-data/hypr/hyprland.lua | 2 |
3 files changed, 13 insertions, 7 deletions
diff --git a/raveos-hyprland-theme/raveos-hyprland-apply.sh b/raveos-hyprland-theme/raveos-hyprland-apply.sh index 73e0bac..98aecec 100644 --- a/raveos-hyprland-theme/raveos-hyprland-apply.sh +++ b/raveos-hyprland-theme/raveos-hyprland-apply.sh @@ -182,7 +182,12 @@ while IFS=: read -r user _ uid gid _ home shell; do runuser -u "$user" -- xdg-user-dirs-update 2>/dev/null || true # Session init service engedélyezése (user service) - runuser -u "$user" -- systemctl --user enable raveos-hyprland-session-init.service 2>/dev/null || true + # A systemctl --user enable nem működik boot-kor (nincs D-Bus session), + # ezért kézzel hozzuk létre a symlink-et a graphical-session.target-ben. + local svc_dir="${home}/.config/systemd/user/graphical-session.target.wants" + mkdir -p "${svc_dir}" + ln -sf /usr/lib/systemd/user/raveos-hyprland-session-init.service \ + "${svc_dir}/raveos-hyprland-session-init.service" 2>/dev/null || true # Tulajdonos visszaállítása chown -R "${uid}:${gid}" "$home" diff --git a/raveos-hyprland-theme/raveos-hyprland-session-init.sh b/raveos-hyprland-theme/raveos-hyprland-session-init.sh index 2734ea4..0192f68 100644 --- a/raveos-hyprland-theme/raveos-hyprland-session-init.sh +++ b/raveos-hyprland-theme/raveos-hyprland-session-init.sh @@ -40,11 +40,12 @@ wallpaper = ,${wallpaper} splash = false EOF - if ! pgrep -x hyprpaper >/dev/null 2>&1; then - hyprpaper & - disown - sleep 2 - fi + # hyprpaper újraindítása (már lehet hogy fut régi konfiggal) + pkill -x hyprpaper 2>/dev/null || true + sleep 1 + hyprpaper & + disown + sleep 2 } # --------------------------------------------------------------------------- diff --git a/raveos-hyprland-theme/theme-data/hypr/hyprland.lua b/raveos-hyprland-theme/theme-data/hypr/hyprland.lua index 45bed39..06d6bb1 100644 --- a/raveos-hyprland-theme/theme-data/hypr/hyprland.lua +++ b/raveos-hyprland-theme/theme-data/hypr/hyprland.lua @@ -23,10 +23,10 @@ hl.on("hyprland.start", function() hl.exec_cmd("dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") hl.exec_cmd("dbus-update-activation-environment --systemd --all") hl.exec_cmd("systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP") + hl.exec_cmd("bash -c 'systemctl --user is-active --quiet graphical-session.target || systemctl --user start graphical-session.target'") hl.exec_cmd("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1") hl.exec_cmd("gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'") hl.exec_cmd("bash -c 'wl-paste --watch cliphist store &'") - hl.exec_cmd("hyprpaper") end) --################## |