From b3d24a1b135eccc347fcede5477b2d7d53524d55 Mon Sep 17 00:00:00 2001 From: Domingo Edwards Date: Fri, 22 Aug 2025 11:54:29 -0400 Subject: [PATCH] fix: Avoid fcitx5 override of xcb keyboard layout (#760) * fix: Avoid fcitx5 override of xcb keyboard layout * Clean up migration * Comment says what the command says --------- Co-authored-by: David Heinemeier Hansson --- config/fcitx5/conf/xcb.conf | 1 + migrations/1755139080.sh | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 config/fcitx5/conf/xcb.conf create mode 100644 migrations/1755139080.sh diff --git a/config/fcitx5/conf/xcb.conf b/config/fcitx5/conf/xcb.conf new file mode 100644 index 00000000..90f53161 --- /dev/null +++ b/config/fcitx5/conf/xcb.conf @@ -0,0 +1 @@ +Allow Overriding System XKB Settings=False diff --git a/migrations/1755139080.sh b/migrations/1755139080.sh new file mode 100644 index 00000000..76325707 --- /dev/null +++ b/migrations/1755139080.sh @@ -0,0 +1,9 @@ +echo "Ensure fcitx5 does not overwrite xkb layout" + +FCITX5_CONF_DIR="$HOME/.config/fcitx5/conf" +FCITX5_XCB_CONF="$FCITX5_CONF_DIR/xcb.conf" + +if [[ ! -f $FCITX5_XCB_CONF ]]; then + mkdir -p "$FCITX5_CONF_DIR" + cp "$OMARCHY_PATH/config/fcitx5/conf/xcb.conf" "$FCITX5_XCB_CONF" +fi