diff options
Diffstat (limited to 'raveos-hyprland-theme/raveos-hyprland-apply.sh')
| -rw-r--r-- | raveos-hyprland-theme/raveos-hyprland-apply.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/raveos-hyprland-theme/raveos-hyprland-apply.sh b/raveos-hyprland-theme/raveos-hyprland-apply.sh index 43f8d8a..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 |