From 6ea9c9311ed972dc98ef5b77364b715ddb00c74d Mon Sep 17 00:00:00 2001 From: ctarx Date: Tue, 7 Oct 2025 21:18:07 +0100 Subject: [PATCH] fix(bindings): anchor Obsidian class to avoid false matches (#1838) Prevent false positives when another window title contains 'Obsidian'. The helper script matches with a case-insensitive regex against class+title, so anchoring to '^obsidian$' ensures we only target the Obsidian window class. Before: SUPER+O could focus a YouTube webapp/FreeTube titled 'Obsidian is great!'. After: SUPER+O focuses Obsidian or launches it if not running. --- config/hypr/bindings.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hypr/bindings.conf b/config/hypr/bindings.conf index 3159f781..40ac5c68 100644 --- a/config/hypr/bindings.conf +++ b/config/hypr/bindings.conf @@ -11,7 +11,7 @@ bindd = SUPER, N, Editor, exec, omarchy-launch-editor bindd = SUPER, T, Activity, exec, $terminal -e btop bindd = SUPER, D, Docker, exec, $terminal -e lazydocker bindd = SUPER, G, Signal, exec, omarchy-launch-or-focus signal "uwsm-app -- signal-desktop" -bindd = SUPER, O, Obsidian, exec, omarchy-launch-or-focus obsidian "uwsm-app -- obsidian -disable-gpu --enable-wayland-ime" +bindd = SUPER, O, Obsidian, exec, omarchy-launch-or-focus "^obsidian$" "uwsm-app -- obsidian -disable-gpu --enable-wayland-ime" bindd = SUPER, SLASH, Passwords, exec, uwsm-app -- 1password # If your web app url contains #, type it as ## to prevent hyprland from treating it as a comment