diff options
Diffstat (limited to 'raveos-hyprland-theme/raveos-hyprland-apply.sh')
| -rw-r--r-- | raveos-hyprland-theme/raveos-hyprland-apply.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/raveos-hyprland-theme/raveos-hyprland-apply.sh b/raveos-hyprland-theme/raveos-hyprland-apply.sh index 0454473..0dacda7 100644 --- a/raveos-hyprland-theme/raveos-hyprland-apply.sh +++ b/raveos-hyprland-theme/raveos-hyprland-apply.sh @@ -248,6 +248,12 @@ while IFS=: read -r user _ uid gid _ home shell; do fi fi + if [[ -f "${home}/.config/hypr/config/windowrules.lua" && -f "${PAYLOAD}/hypr/config/windowrules.lua" ]] \ + && grep -q 'fix-xwayland-drags' "${home}/.config/hypr/config/windowrules.lua" 2>/dev/null \ + && ! grep -q 'windowrule-14' "${home}/.config/hypr/config/windowrules.lua" 2>/dev/null; then + 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' \ @@ -309,10 +315,8 @@ SEOF done # RaveSwitch - if [[ ! -f "${home}/.config/raveswitch/config.ron" && -f "${PAYLOAD}/raveswitch/config.ron" ]]; then + if [[ -f "${PAYLOAD}/raveswitch/config.ron" ]]; then install -Dm644 "${PAYLOAD}/raveswitch/config.ron" "${home}/.config/raveswitch/config.ron" - elif [[ -f "${home}/.config/raveswitch/config.ron" ]]; then - sed -i 's/modifier: "Super"/modifier: "Alt"/' "${home}/.config/raveswitch/config.ron" 2>/dev/null || true fi # Flatpak global override @@ -345,6 +349,12 @@ SEOF "${home}/.config/background.jpg" \ "${home}/.config/user-dirs.dirs" 2>/dev/null || true chown "${uid}:${gid}" \ + "${home}/.config" \ + "${home}/.local" \ + "${home}/.local/state" \ + "${home}/.local/share" \ + "${home}/.local/share/flatpak" 2>/dev/null || true + chown "${uid}:${gid}" \ "${home}/${XDG_DESKTOP}" \ "${home}/${XDG_DOWNLOAD}" \ "${home}/${XDG_TEMPLATES}" \ |