mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Fix Hyprland 0.53 windowrule syntax breaking changes (#4025)
* Fix Hyprland 0.53 windowrule syntax breaking changes Hyprland 0.53 introduced breaking changes to windowrule syntax: - Props now use `match:` prefix: `class:pattern` → `match:class pattern` - Boolean effects require `on` suffix: `float` → `float on` - Snake_case naming: `nofocus` → `no_focus`, `stayfocused` → `stay_focused` - `noborder` replaced with `border_size 0` - `noanim` replaced with `animation none` - layerrule syntax: `noanim, X` → `animation none, match:namespace X` - `misc:new_window_takes_over_fullscreen` → `misc:on_focus_under_fullscreen` See: https://github.com/hyprwm/hyprland-wiki/pull/1278 * Correct for the new style * Migrate the scrolltouchpad setting in userland too * Need a reboot to pair with new Hyprland --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
9
migrations/1767138576.sh
Normal file
9
migrations/1767138576.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
echo "Update terminal scrolltouchpad setting to Hyprland 0.53 style"
|
||||
|
||||
if grep -q "scrolltouchpad" ~/.config/hypr/input.conf; then
|
||||
sed -Ei 's/^windowrule = scrolltouchpad ([^,]+), class:\(([^)]+)\)$/windowrule = match:class (\2), scroll_touchpad \1/;
|
||||
s/^windowrule = scrolltouchpad ([^,]+), class:([^ ]+)$/windowrule = match:class \2, scroll_touchpad \1/' ~/.config/hypr/input.conf
|
||||
fi
|
||||
|
||||
# Ensure we restart to pair new Hyprland settings with new version
|
||||
omarchy-state set reboot-required
|
||||
Reference in New Issue
Block a user