From 88c8695ee5e88357de479482eb68e3677b21f5d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gr=C3=BCndel?= Date: Fri, 20 Feb 2026 17:32:37 +0100 Subject: [PATCH 1/4] Add full OSC 52 support to Alacritty configuration (#4603) * Add full OSC 52 support to Alacritty configuration * Simplify OSC 52 support addition in Alacritty config --------- Co-authored-by: David Heinemeier Hansson --- config/alacritty/alacritty.toml | 3 +++ migrations/1771002522.sh | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 migrations/1771002522.sh diff --git a/config/alacritty/alacritty.toml b/config/alacritty/alacritty.toml index be44031c..f016c07a 100644 --- a/config/alacritty/alacritty.toml +++ b/config/alacritty/alacritty.toml @@ -3,6 +3,9 @@ general.import = [ "~/.config/omarchy/current/theme/alacritty.toml" ] [env] TERM = "xterm-256color" +[terminal] +osc52 = "CopyPaste" + [font] normal = { family = "JetBrainsMono Nerd Font", style = "Regular" } bold = { family = "JetBrainsMono Nerd Font", style = "Bold" } diff --git a/migrations/1771002522.sh b/migrations/1771002522.sh new file mode 100644 index 00000000..a4550bc5 --- /dev/null +++ b/migrations/1771002522.sh @@ -0,0 +1,11 @@ +echo "Add full OSC 52 support to Alacritty" + +ALACRITTY_CONFIG=~/.config/alacritty/alacritty.toml + +if [[ -f $ALACRITTY_CONFIG ]] && ! grep -q 'osc52' "$ALACRITTY_CONFIG"; then + cat >> "$ALACRITTY_CONFIG" << 'EOF' + +[terminal] +osc52 = "CopyPaste" +EOF +fi From 645118830e3babfa1bc5f9af1fa411e3155b728a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 20 Feb 2026 17:33:40 +0100 Subject: [PATCH 2/4] Restart follows in second migration --- migrations/1771602477.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/migrations/1771602477.sh b/migrations/1771602477.sh index 6d1621ba..f7bb4a61 100755 --- a/migrations/1771602477.sh +++ b/migrations/1771602477.sh @@ -35,5 +35,3 @@ if ! grep -q "#custom-idle-indicator" "$STYLE_FILE"; then } EOF fi - -omarchy-restart-waybar From e231697430d1a5c0eaf8c65b9a956100f55f8354 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 20 Feb 2026 17:52:19 +0100 Subject: [PATCH 3/4] Raise inotify file watchers --- install/config/all.sh | 1 + install/config/increase-file-watchers.sh | 3 +++ migrations/1771606080.sh | 3 +++ 3 files changed, 7 insertions(+) create mode 100755 install/config/increase-file-watchers.sh create mode 100755 migrations/1771606080.sh diff --git a/install/config/all.sh b/install/config/all.sh index 9a7be526..ebd0e43f 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -7,6 +7,7 @@ run_logged $OMARCHY_INSTALL/config/timezones.sh run_logged $OMARCHY_INSTALL/config/increase-sudo-tries.sh run_logged $OMARCHY_INSTALL/config/increase-lockout-limit.sh run_logged $OMARCHY_INSTALL/config/ssh-flakiness.sh +run_logged $OMARCHY_INSTALL/config/increase-file-watchers.sh run_logged $OMARCHY_INSTALL/config/detect-keyboard-layout.sh run_logged $OMARCHY_INSTALL/config/xcompose.sh run_logged $OMARCHY_INSTALL/config/mise-work.sh diff --git a/install/config/increase-file-watchers.sh b/install/config/increase-file-watchers.sh new file mode 100755 index 00000000..a6be761a --- /dev/null +++ b/install/config/increase-file-watchers.sh @@ -0,0 +1,3 @@ +# Increase inotify file watchers for VS Code, webpack, and other dev tools (default 8192 is too low) +echo "fs.inotify.max_user_watches=524288" | sudo tee /etc/sysctl.d/90-omarchy-file-watchers.conf >/dev/null +sudo sysctl --system >/dev/null 2>&1 diff --git a/migrations/1771606080.sh b/migrations/1771606080.sh new file mode 100755 index 00000000..da064f38 --- /dev/null +++ b/migrations/1771606080.sh @@ -0,0 +1,3 @@ +echo "Increase inotify file watchers for dev tools" + +bash $OMARCHY_PATH/install/config/increase-file-watchers.sh From 518349e4905e3d16a28a11cc8203c09738dfca5c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 20 Feb 2026 17:53:02 +0100 Subject: [PATCH 4/4] Use new hyprland rules for changing the scrolltouchpad Closes #4670 --- migrations/1767138576.sh | 6 +++--- migrations/1771606249.sh | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 migrations/1771606249.sh diff --git a/migrations/1767138576.sh b/migrations/1767138576.sh index 5df9ce2b..9771e316 100644 --- a/migrations/1767138576.sh +++ b/migrations/1767138576.sh @@ -1,9 +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/' ~/.config/hypr/input.conf - sed -Ei 's/^windowrule = scrolltouchpad ([^,]+), class:([^ ]+)$/windowrule = match:class \2, scroll_touchpad \1/' ~/.config/hypr/input.conf - sed -Ei 's/^windowrule = scrolltouchpad ([^,]+), tag:terminal$/windowrule = match:class (Alacritty|kitty), scroll_touchpad 1.5\nwindowrule = match:class com.mitchellh.ghostty, scroll_touchpad 0.2/' ~/.config/hypr/input.conf + sed -Ei 's/^windowrule = scrolltouchpad ([^,]+), class:\(([^)]+)\)\s*$/windowrule = match:class (\2), scroll_touchpad \1/' ~/.config/hypr/input.conf + sed -Ei 's/^windowrule = scrolltouchpad ([^,]+), class:([^ ]+)\s*$/windowrule = match:class \2, scroll_touchpad \1/' ~/.config/hypr/input.conf + sed -Ei 's/^windowrule = scrolltouchpad ([^,]+), tag:terminal\s*$/windowrule = match:class (Alacritty|kitty), scroll_touchpad 1.5\nwindowrule = match:class com.mitchellh.ghostty, scroll_touchpad 0.2/' ~/.config/hypr/input.conf fi # Ensure we restart to pair new Hyprland settings with new version diff --git a/migrations/1771606249.sh b/migrations/1771606249.sh new file mode 100644 index 00000000..af341555 --- /dev/null +++ b/migrations/1771606249.sh @@ -0,0 +1,9 @@ +echo "Re-run scrolltouchpad migration for configs with trailing whitespace" + +if grep -q "scrolltouchpad" ~/.config/hypr/input.conf; then + sed -Ei 's/^windowrule = scrolltouchpad ([^,]+), class:\(([^)]+)\)\s*$/windowrule = match:class (\2), scroll_touchpad \1/' ~/.config/hypr/input.conf + sed -Ei 's/^windowrule = scrolltouchpad ([^,]+), class:([^ ]+)\s*$/windowrule = match:class \2, scroll_touchpad \1/' ~/.config/hypr/input.conf + sed -Ei 's/^windowrule = scrolltouchpad ([^,]+), tag:terminal\s*$/windowrule = match:class (Alacritty|kitty), scroll_touchpad 1.5\nwindowrule = match:class com.mitchellh.ghostty, scroll_touchpad 0.2/' ~/.config/hypr/input.conf + + omarchy-state set reboot-required +fi