diff options
Diffstat (limited to 'raveos-hyprland-theme/raveos-hyprland-session-init.sh')
| -rw-r--r-- | raveos-hyprland-theme/raveos-hyprland-session-init.sh | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/raveos-hyprland-theme/raveos-hyprland-session-init.sh b/raveos-hyprland-theme/raveos-hyprland-session-init.sh deleted file mode 100644 index 0192f68..0000000 --- a/raveos-hyprland-theme/raveos-hyprland-session-init.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env bash -# raveos-hyprland-session-init.sh -# --------------------------------- -# User session init: beállítja a háttérképet és GTK témát Hyprland alatt. -# -# Systemd user service hívja (raveos-hyprland-session-init.service). -# Csak akkor fut, ha HYPRLAND_INSTANCE_SIGNATURE be van állítva. - -set -euo pipefail - -# --------------------------------------------------------------------------- -# Várakozás Hyprland ready jelzésére -# --------------------------------------------------------------------------- -TIMEOUT=30 -ELAPSED=0 -while [[ -z "${HYPRLAND_INSTANCE_SIGNATURE:-}" ]]; do - if (( ELAPSED >= TIMEOUT )); then - echo "Hiba: HYPRLAND_INSTANCE_SIGNATURE nem érkezett ${TIMEOUT}s alatt." >&2 - exit 1 - fi - sleep 1 - (( ELAPSED++ )) -done - -# --------------------------------------------------------------------------- -# Háttérkép beállítása (hyprpaper) -# --------------------------------------------------------------------------- -setup_wallpaper() { - local wallpaper="${HOME}/.config/background.jpg" - local hypr_conf="${HOME}/.config/hypr/hyprpaper.conf" - - if [[ ! -f "${wallpaper}" ]]; then - echo "Nincs háttérkép: ${wallpaper}" >&2 - return 1 - fi - - cat > "${hypr_conf}" <<-EOF -preload = ${wallpaper} -wallpaper = ,${wallpaper} -splash = false -EOF - - # 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 -} - -# --------------------------------------------------------------------------- -# GTK téma beállítása -# --------------------------------------------------------------------------- -setup_gtk() { - gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-olive-dark' - gsettings set org.gnome.desktop.interface icon-theme 'Adwaitaru-olive' -} - -# --------------------------------------------------------------------------- -# Futtatás -# --------------------------------------------------------------------------- -setup_wallpaper -setup_gtk |