From e228a987a8c34a5aea11b1f662982615258753ff Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 14 Sep 2025 21:16:04 +0200 Subject: [PATCH] Add migration to ensure Obsidian binding is using wayland-ime --- migrations/1757877123.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 migrations/1757877123.sh diff --git a/migrations/1757877123.sh b/migrations/1757877123.sh new file mode 100644 index 00000000..0a0f3ab7 --- /dev/null +++ b/migrations/1757877123.sh @@ -0,0 +1,7 @@ +echo "Obsidian should be using Wayland IME for better compatibility with fcitx5 and other languages" + +if [[ -f ~/.config/hypr/bindings.conf ]]; then + sed -i '/^bindd = SUPER, O, Obsidian, exec, uwsm app -- obsidian -disable-gpu/{ + /--enable-wayland-ime/! s/$/ --enable-wayland-ime/ + }' ~/.config/hypr/bindings.conf +fi