summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme
diff options
context:
space:
mode:
authorNippy <nippy@Nippy-Mac-mini.local>2026-10-09 10:49:26 +0200
committerNippy <nippy@Nippy-Mac-mini.local>2026-10-09 10:49:26 +0200
commit91978706279a19a3ac96393630876f3e50cbc518 (patch)
tree1355da60486a305aefeea4e55543bbf1008715b3 /raveos-hyprland-theme
parent17a23f8a0cec5439d674d90c593497e4ceed2c68 (diff)
downloadRaveOS-PKGBUILD-91978706279a19a3ac96393630876f3e50cbc518.tar.gz
RaveOS-PKGBUILD-91978706279a19a3ac96393630876f3e50cbc518.zip
fix
Diffstat (limited to 'raveos-hyprland-theme')
-rw-r--r--raveos-hyprland-theme/PKGBUILD9
-rw-r--r--raveos-hyprland-theme/raveos-hyprland-apply.sh16
-rw-r--r--raveos-hyprland-theme/raveos-session-init.sh2
3 files changed, 1 insertions, 26 deletions
diff --git a/raveos-hyprland-theme/PKGBUILD b/raveos-hyprland-theme/PKGBUILD
index 0eb6ea6..018c83b 100644
--- a/raveos-hyprland-theme/PKGBUILD
+++ b/raveos-hyprland-theme/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=raveos-hyprland-theme
pkgver=1.0.0
-pkgrel=11
+pkgrel=12
pkgdesc="RaveOS Hyprland theme payload and installer"
arch=('any')
url="https://raveos.local"
@@ -40,14 +40,12 @@ SRCPKGDEST="${startdir}/build"
LOGDEST="${startdir}/build"
package() {
- # Alapértelmezett háttérkép
install -dm755 "${pkgdir}/usr/share/backgrounds/raveos"
install -Dm644 "${startdir}/theme-data/background.jpg" \
"${pkgdir}/usr/share/backgrounds/raveos/raveos-main-bg.jpeg"
install -Dm644 "${startdir}/theme-data/background.jpg" \
"${pkgdir}/usr/share/backgrounds/raveos/background.jpg"
- # Rendszer szintű ikonok és GTK téma
install -dm755 "${pkgdir}/usr/share/icons"
install -dm755 "${pkgdir}/usr/share/themes"
cp -r --no-preserve=ownership "${startdir}/theme-data/skel/.icons/Adwaitaru-olive" \
@@ -55,23 +53,18 @@ package() {
cp -r --no-preserve=ownership "${startdir}/theme-data/skel/.themes/Yaru-olive-dark" \
"${pkgdir}/usr/share/themes/"
- # SDDM profilképek könyvtára
install -dm755 "${pkgdir}/usr/share/sddm/faces"
- # Fastfetch profil script
install -Dm755 "${startdir}/theme-data/profile.d/raveos-fastfetch.sh" \
"${pkgdir}/etc/profile.d/raveos-fastfetch.sh"
- # Session init script első bejelentkezéshez
install -Dm755 "${startdir}/raveos-session-init.sh" \
"${pkgdir}/etc/profile.d/raveos-session-init.sh"
- # Theme payload
install -dm755 "${pkgdir}/usr/share/raveos/hyprland-theme"
cp -r --no-preserve=ownership "${startdir}/theme-data" \
"${pkgdir}/usr/share/raveos/hyprland-theme/"
- # Auto-apply script és systemd service
install -Dm755 "${startdir}/raveos-hyprland-apply.sh" \
"${pkgdir}/usr/lib/raveos-hyprland-theme/auto-apply.sh"
diff --git a/raveos-hyprland-theme/raveos-hyprland-apply.sh b/raveos-hyprland-theme/raveos-hyprland-apply.sh
index 6262fc9..a66ce0b 100644
--- a/raveos-hyprland-theme/raveos-hyprland-apply.sh
+++ b/raveos-hyprland-theme/raveos-hyprland-apply.sh
@@ -153,7 +153,6 @@ install_user_avatar() {
fi
}
-# skel konfiguracio uj felhasznaloknak
mkdir -p \
/etc/skel/.config/hypr \
/etc/skel/.config/dms \
@@ -219,7 +218,6 @@ install_gtk_bookmarks /etc/skel
ensure_bashrc_hook /etc/skel/.bashrc
echo "1" > /etc/skel/.config/raveos/hyprland-migrated
-# Meglevo felhasznalok beallitasa
while IFS=: read -r user _ uid gid _ home shell; do
[[ "$uid" -ge 1000 ]] || continue
[[ -d "$home" ]] || continue
@@ -237,7 +235,6 @@ while IFS=: read -r user _ uid gid _ home shell; do
"${home}/.local/state/DankMaterialShell" \
"${home}/.local/share/flatpak/overrides"
- # Hyprland konfig
if [[ ! -f "${home}/.config/hypr/hyprland.lua" && -d "${PAYLOAD}/hypr" ]]; then
cp -rf "${PAYLOAD}/hypr/." "${home}/.config/hypr/"
rm -f "${home}/.config/hypr/hyprland.conf"
@@ -262,13 +259,11 @@ while IFS=: read -r user _ uid gid _ home shell; do
install -Dm644 "${PAYLOAD}/hypr/config/windowrules.lua" "${home}/.config/hypr/config/windowrules.lua"
fi
- # hyprpaper konfig
if [[ ! -f "${home}/.config/hypr/hyprpaper.conf" ]]; then
printf 'preload = %s/.config/background.jpg\nwallpaper = ,%s/.config/background.jpg\nsplash = false\n' \
"$home" "$home" > "${home}/.config/hypr/hyprpaper.conf"
fi
- # DMS konfig
if [[ -d "${PAYLOAD}/dms" ]]; then
cp -rn "${PAYLOAD}/dms/." "${home}/.config/quickshell/pockets/DMS/" 2>/dev/null || true
cp -rn "${PAYLOAD}/dms/." "${home}/.config/dms/" 2>/dev/null || true
@@ -285,7 +280,6 @@ while IFS=: read -r user _ uid gid _ home shell; do
done
fi
- # DMS session.json hatterkep
if [[ ! -f "${home}/.local/state/DankMaterialShell/session.json" ]]; then
cat > "${home}/.local/state/DankMaterialShell/session.json" <<-SEOF
{
@@ -294,27 +288,22 @@ while IFS=: read -r user _ uid gid _ home shell; do
SEOF
fi
- # Hatterkep
if [[ ! -f "${home}/.config/background.jpg" && -f "${PAYLOAD}/background.jpg" ]]; then
install -Dm644 "${PAYLOAD}/background.jpg" "${home}/.config/background.jpg"
fi
- # SDDM es user avatar
install_user_avatar "$user" "$home" "$uid" "$gid"
- # Kitty
if [[ ! -f "${home}/.config/kitty/kitty.conf" && -d "${PAYLOAD}/kitty" ]]; then
cp -r "${PAYLOAD}/kitty/." "${home}/.config/kitty/"
fi
- # Fastfetch
for f in config.jsonc config-kitty.jsonc raveos-logo.png raveos-logo.txt; do
if [[ ! -f "${home}/.config/fastfetch/${f}" && -f "${PAYLOAD}/fastfetch/${f}" ]]; then
install -Dm644 "${PAYLOAD}/fastfetch/${f}" "${home}/.config/fastfetch/${f}"
fi
done
- # GTK, Thunar, nwg-look, xsettingsd, Kvantum
for d in gtk-3.0 gtk-4.0 nwg-look Thunar xfce4 xsettingsd Kvantum; do
if [[ ! -d "${home}/.config/${d}" && -d "${PAYLOAD}/${d}" ]]; then
mkdir -p "${home}/.config/${d}"
@@ -322,12 +311,10 @@ SEOF
fi
done
- # RaveSwitch
if [[ -f "${PAYLOAD}/raveswitch/config.ron" ]]; then
install -Dm644 "${PAYLOAD}/raveswitch/config.ron" "${home}/.config/raveswitch/config.ron"
fi
- # Flatpak global override
if [[ ! -f "${home}/.local/share/flatpak/overrides/global" && -f "${PAYLOAD}/skel/.local/share/flatpak/overrides/global" ]]; then
install -Dm644 "${PAYLOAD}/skel/.local/share/flatpak/overrides/global" \
"${home}/.local/share/flatpak/overrides/global"
@@ -338,18 +325,15 @@ SEOF
ensure_bashrc_hook "${home}/.bashrc"
echo "1" > "${home}/.config/raveos/hyprland-migrated"
- # GTK tema beallitasa gsettings-szel
(
runuser -u "$user" -- dbus-launch gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-olive-dark' 2>/dev/null
runuser -u "$user" -- dbus-launch gsettings set org.gnome.desktop.interface icon-theme 'Adwaitaru-olive' 2>/dev/null
) || true
- # matugen: wallpaper-alapu szinseme generalas ha elerheto
if command -v matugen &>/dev/null && [[ -f "${home}/.config/background.jpg" ]]; then
runuser -u "$user" -- matugen image "${home}/.config/background.jpg" 2>/dev/null || true
fi
- # Kizarolag az erintett konfiguraciok es konyvtarak jogosultsagait javitjuk
chown "${uid}:${gid}" \
"${home}/.bashrc" \
"${home}/.face" \
diff --git a/raveos-hyprland-theme/raveos-session-init.sh b/raveos-hyprland-theme/raveos-session-init.sh
index b0d0d6e..202a919 100644
--- a/raveos-hyprland-theme/raveos-session-init.sh
+++ b/raveos-hyprland-theme/raveos-session-init.sh
@@ -7,11 +7,9 @@ if [[ -f "${_raveos_init}" ]]; then
return 0 2>/dev/null || exit 0
fi
-# GTK tema
gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-olive-dark' 2>/dev/null || true
gsettings set org.gnome.desktop.interface icon-theme 'Adwaitaru-olive' 2>/dev/null || true
-# DMS session.json: hatterkep beallitasa
_session_file="${HOME}/.local/state/DankMaterialShell/session.json"
_bg_file="${HOME}/.config/background.jpg"