diff options
| -rw-r--r-- | raveos-hyprland-theme/PKGBUILD | 2 | ||||
| -rw-r--r-- | raveos-hyprland-theme/raveos-hyprland-apply.sh | 6 | ||||
| -rw-r--r-- | raveos-hyprland-theme/theme-data/hypr/hyprland.conf | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/raveos-hyprland-theme/PKGBUILD b/raveos-hyprland-theme/PKGBUILD index 8f12a5b..02bfb4d 100644 --- a/raveos-hyprland-theme/PKGBUILD +++ b/raveos-hyprland-theme/PKGBUILD @@ -1,6 +1,6 @@ pkgname=raveos-hyprland-theme pkgver=0.0.0 -pkgrel=20 +pkgrel=21 pkgdesc="RaveOS Hyprland theme payload and installer (includes DankMaterialShell)" arch=('any') url="https://raveos.local" diff --git a/raveos-hyprland-theme/raveos-hyprland-apply.sh b/raveos-hyprland-theme/raveos-hyprland-apply.sh index 90167e4..f383a87 100644 --- a/raveos-hyprland-theme/raveos-hyprland-apply.sh +++ b/raveos-hyprland-theme/raveos-hyprland-apply.sh @@ -114,6 +114,7 @@ while IFS=: read -r user _ uid gid _ home shell; do "${home}/.config/kitty" \ "${home}/.config/fastfetch" + pkill -u "$user" hyprpaper 2>/dev/null || true if [[ -d "${payload_dir}/hypr" ]]; then cp -rf "${payload_dir}/hypr/." "${home}/.config/hypr/" fi @@ -175,6 +176,11 @@ while IFS=: read -r user _ uid gid _ home shell; do if command -v matugen &>/dev/null && [[ -f "${home}/.config/background" ]]; then runuser -u "$user" -- matugen image "${home}/.config/background" 2>/dev/null || true fi + + hypr_sig=$(runuser -u "$user" -- bash -c 'ls /run/user/'"$uid"'/hypr/ 2>/dev/null | tail -1') + if [[ -n "$hypr_sig" ]]; then + runuser -u "$user" -- bash -c "HYPRLAND_INSTANCE_SIGNATURE='${hypr_sig}' hyprctl dispatch exec 'env LIBGL_ALWAYS_SOFTWARE=1 hyprpaper'" 2>/dev/null || true + fi done < /etc/passwd echo "Automatic apply finished." diff --git a/raveos-hyprland-theme/theme-data/hypr/hyprland.conf b/raveos-hyprland-theme/theme-data/hypr/hyprland.conf index 352ec0f..a71e03e 100644 --- a/raveos-hyprland-theme/theme-data/hypr/hyprland.conf +++ b/raveos-hyprland-theme/theme-data/hypr/hyprland.conf @@ -53,7 +53,7 @@ exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = hyprswitch init --show-title --size-factor 6 --workspaces-per-row 5 & exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' exec-once = bash -c "wl-paste --watch cliphist store &" -exec-once = hyprpaper +exec-once = env LIBGL_ALWAYS_SOFTWARE=1 hyprpaper exec-once = dms run exec-once = hyprshell run |