From 5f68259aedadb8b6080e58e4de91653e58053ae1 Mon Sep 17 00:00:00 2001 From: Loc Huynh Date: Sun, 22 Feb 2026 10:12:27 +0700 Subject: [PATCH 1/2] icon: redesign + docs + stroke fixes --- README.en.md | 42 +++++++++++---- README.md | 52 ++++++++++++++----- .../scalable/apps/fcitx-lotus-default.svg | 2 +- .../apps/fcitx-lotus-emoji-default.svg | 2 +- .../icons/scalable/apps/fcitx-lotus-emoji.svg | 12 ++--- .../scalable/apps/fcitx-lotus-off-default.svg | 2 +- data/icons/scalable/apps/fcitx-lotus-off.svg | 24 ++++----- data/icons/scalable/apps/fcitx-lotus.svg | 19 +++---- 8 files changed, 100 insertions(+), 55 deletions(-) diff --git a/README.en.md b/README.en.md index 0b31dda..f8c5d3f 100644 --- a/README.en.md +++ b/README.en.md @@ -322,10 +322,11 @@ systemctl status fcitx5-lotus-server@$(whoami).service The input method will not work without these variables. -- **Bash / Zsh:** +
+Bash ```bash -# This command will add the configuration to ~/.bash_profile, do the same for .zprofile +# Add the configuration to ~/.bash_profile cat <> ~/.bash_profile export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx @@ -335,7 +336,26 @@ export GLFW_IM_MODULE=ibus EOF ``` -- **Fish shell:** +
+ +
+Zsh + +```bash +# Add the configuration to ~/.zprofile +cat <> ~/.zprofile +export GTK_IM_MODULE=fcitx +export QT_IM_MODULE=fcitx +export XMODIFIERS=@im=fcitx +export SDL_IM_MODULE=fcitx +export GLFW_IM_MODULE=ibus +EOF +``` + +
+ +
+Fish shell ```fish # Add configuration to ~/.config/fish/config.fish @@ -350,6 +370,8 @@ set -gx GLFW_IM_MODULE ibus EOF ``` +
+ Log out and log in to apply changes.
@@ -410,15 +432,15 @@ After logging out and logging in again: 2. Find **Lotus** in the right column. 3. Click the **<** arrow to add it to the left column. 4. Apply. -
-Additional configuration for Wayland (KDE, Hyprland) +
+ Additional configuration for Wayland (KDE, Hyprland) - **KDE Plasma:** _System Settings_ → _Keyboard_ → _Virtual Keyboard_ → Select **Fcitx 5**. - **Hyprland:** Add the following line to `~/.config/hypr/hyprland.conf`: - ```ini - permission = fcitx5-lotus-server, keyboard, allow - ``` -
+ ```ini + permission = fcitx5-lotus-server, keyboard, allow + ``` +
--- @@ -429,7 +451,7 @@ After logging out and logging in again: ### 1. Customize input method - **Access:** Right-click the Lotus icon on the system tray to open customization. -- **Customization options:** _Typing Mode_, _Input Method_, _Charset_, _Spell Check_, _Macro_, _Capitalize Macro_, _Auto non-VN restore_, _Modern Style_, _Free Marking_, _Fix Uinput with ack_, _Mode menu_. +- **Customization options:** _Typing Mode_, _Input Method_, _Charset_, _Spell Check_, _Macro_, _Capitalize Macro_, _Auto non-VN restore_, _Modern Style_, _Free Marking_, _Fix Uinput with ack_, _Lotus status icons_, _Mode menu_. ### 2. Typing mode menu diff --git a/README.md b/README.md index d86bf1e..fc3cb5e 100644 --- a/README.md +++ b/README.md @@ -296,7 +296,8 @@ Sau khi cài đặt xong, bạn cần thực hiện các bước sau để bật Server giúp bộ gõ tương tác với hệ thống tốt hơn (đặc biệt là gửi phím xóa và sửa lỗi). -- **Bash / Zsh:** +
+Bash / Zsh ```bash # Bật và khởi động service (tự động fix lỗi thiếu user systemd nếu có) @@ -304,7 +305,10 @@ sudo systemctl enable --now fcitx5-lotus-server@$(whoami).service || \ (sudo systemd-sysusers && sudo systemctl enable --now fcitx5-lotus-server@$(whoami).service) ``` -- **Fish shell:** +
+ +
+Fish shell ```fish # Bật và khởi động service (tự động fix lỗi thiếu user systemd nếu có) @@ -313,6 +317,8 @@ sudo systemctl enable --now fcitx5-lotus-server@(whoami).service; or begin end ``` +
+ ```bash # Kiểm tra status (nếu thấy active (running) màu xanh là OK) systemctl status fcitx5-lotus-server@$(whoami).service @@ -322,10 +328,11 @@ systemctl status fcitx5-lotus-server@$(whoami).service Bộ gõ sẽ không hoạt động nếu thiếu các biến này. -- **Bash / Zsh:** +
+Bash ```bash -# Thêm cấu hình vào ~/.bash_profile (với .zprofile làm tương tự) +# Thêm cấu hình vào ~/.bash_profile cat <> ~/.bash_profile export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx @@ -335,7 +342,25 @@ export GLFW_IM_MODULE=ibus EOF ``` -- **Fish shell:** +
+ +
+Zsh + +```bash +# Thêm cấu hình vào ~/.zprofile +cat <> ~/.zprofile +export GTK_IM_MODULE=fcitx +export QT_IM_MODULE=fcitx +export XMODIFIERS=@im=fcitx +export SDL_IM_MODULE=fcitx +export GLFW_IM_MODULE=ibus +EOF +``` + +
+
+Fish shell ```fish # Thêm cấu hình vào ~/.config/fish/config.fish @@ -350,6 +375,8 @@ set -gx GLFW_IM_MODULE ibus EOF ``` +
+ Log out và log in để áp dụng thay đổi.
@@ -417,10 +444,10 @@ Sau khi đã log out và log in lại: - **KDE Plasma:** _System Settings_ → _Keyboard_ → _Virtual Keyboard_ → Chọn **Fcitx 5**. - **Hyprland:** Thêm dòng sau vào `~/.config/hypr/hyprland.conf`: - ```ini - permission = fcitx5-lotus-server, keyboard, allow - ``` - +```ini +permission = fcitx5-lotus-server, keyboard, allow +``` +
--- @@ -445,11 +472,12 @@ Sau khi đã log out và log in lại: | **Modern Style** | Bật/tắt kiểu đặt dấu thanh hiện đại _(ví dụ: oà, *uý thay vì òa, *úy)_. | Bật | | **Free Marking** | Bật/tắt bỏ dấu tự do. | Bật | | **Fix Uinput with ack** | Bật/tắt sửa lỗi chế độ Uinput với ack.
Nên bật khi sử dụng các ứng dụng Chromium (Chrome, Brave, Edge, ...). | Tắt | -| **Mode Menu** | Bật/tắt mở menu chuyển chế độ gõ bằng phím **`** (tắt để nhập biểu tượng trực tiếp). | Bật | +| **Lotus Icons** | Bật/tắt sử dụng icon Lotus thay vì icon mặc định V E. | Tắt | +| **Typing Mode Menu** | Bật/tắt mở menu chuyển chế độ gõ bằng phím **`** (tắt để nhập ký tự trực tiếp). | Bật | ### 2. Menu chuyển chế độ gõ -Khi con trỏ đang ở trong ô nhập liệu (có thể gõ văn bản), nhấn phím **`** để mở menu chọn chế độ gõ; bạn có thể dùng chuột hoặc phím tắt để chọn. +Khi con trỏ đang ở trong ô nhập liệu (có thể gõ văn bản), nhấn phím **`** để mở menu chọn chế độ gõ; bạn có thể dùng chuột hoặc phím tắt để chọn chế độ mong muốn. | Chế độ | Phím tắt | Mô tả | | :-------------------- | :------: | :----------------------------------------------------------------------------------------------------------------------------------- | @@ -566,7 +594,7 @@ Cảm ơn những con người tuyệt vời ([chú thích emoji](https://allcon Nguyen Hoang Ky
Nguyen Hoang Ky

📝 💻 📖 📆 👀 - Loc Huynh
Loc Huynh

🐛 📖 🎨 🌍 + Huỳnh Thiện Lộc
Huỳnh Thiện Lộc

🐛 📖 🎨 🌍 Nguyễn Hồng Hiệp
Nguyễn Hồng Hiệp

📖 Đặng Quang Hiển
Đặng Quang Hiển

📖 Zebra2711
Zebra2711

🐛 💻 diff --git a/data/icons/scalable/apps/fcitx-lotus-default.svg b/data/icons/scalable/apps/fcitx-lotus-default.svg index 0835517..c3a4815 100644 --- a/data/icons/scalable/apps/fcitx-lotus-default.svg +++ b/data/icons/scalable/apps/fcitx-lotus-default.svg @@ -2,7 +2,7 @@ diff --git a/data/icons/scalable/apps/fcitx-lotus-emoji-default.svg b/data/icons/scalable/apps/fcitx-lotus-emoji-default.svg index bedfd36..eb8904a 100644 --- a/data/icons/scalable/apps/fcitx-lotus-emoji-default.svg +++ b/data/icons/scalable/apps/fcitx-lotus-emoji-default.svg @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/data/icons/scalable/apps/fcitx-lotus-emoji.svg b/data/icons/scalable/apps/fcitx-lotus-emoji.svg index 1cee9fb..d51bfd1 100644 --- a/data/icons/scalable/apps/fcitx-lotus-emoji.svg +++ b/data/icons/scalable/apps/fcitx-lotus-emoji.svg @@ -1,17 +1,17 @@ - + - + + fill="none" stroke="#FFFFFF" stroke-width="2.5" /> - - + + + stroke-linecap="round" stroke-linejoin="round" /> \ No newline at end of file diff --git a/data/icons/scalable/apps/fcitx-lotus-off-default.svg b/data/icons/scalable/apps/fcitx-lotus-off-default.svg index 4442da9..ec858ae 100644 --- a/data/icons/scalable/apps/fcitx-lotus-off-default.svg +++ b/data/icons/scalable/apps/fcitx-lotus-off-default.svg @@ -3,7 +3,7 @@ diff --git a/data/icons/scalable/apps/fcitx-lotus-off.svg b/data/icons/scalable/apps/fcitx-lotus-off.svg index 400a906..70b782e 100644 --- a/data/icons/scalable/apps/fcitx-lotus-off.svg +++ b/data/icons/scalable/apps/fcitx-lotus-off.svg @@ -1,30 +1,28 @@ - + - + + fill="#FFFFFF" stroke="#000000" stroke-width="1" + transform="rotate(-22, 24, 35)" /> + fill="#FFFFFF" stroke="#000000" stroke-width="1" + transform="rotate(22, 24, 35)" /> + fill="#FFFFFF" stroke="#000000" stroke-width="1" + transform="rotate(-10, 24, 35)" /> + fill="#FFFFFF" stroke="#000000" stroke-width="1" + transform="rotate(10, 24, 35)" /> - - + fill="#FFFFFF" stroke="#000000" stroke-width="1"/> \ No newline at end of file diff --git a/data/icons/scalable/apps/fcitx-lotus.svg b/data/icons/scalable/apps/fcitx-lotus.svg index 88af1ec..37db3fa 100644 --- a/data/icons/scalable/apps/fcitx-lotus.svg +++ b/data/icons/scalable/apps/fcitx-lotus.svg @@ -1,36 +1,33 @@ - + - + + transform="rotate(-52, 24, 35)" /> + transform="rotate(52, 24, 35)" /> + transform="rotate(-26, 24, 35)" /> + transform="rotate(26, 24, 35)" /> - + - - - + fill="#FFFFFF" stroke="#C2185B" stroke-width="1" /> \ No newline at end of file From f715074f6e37f7ca540f01b97fde5eae1a57c1f6 Mon Sep 17 00:00:00 2001 From: Nguyen Hoang Ky Date: Sun, 22 Feb 2026 12:05:06 +0700 Subject: [PATCH 2/2] docs: change name in contributors, and fix script for fish shell --- README.en.md | 48 ++++++++++++++++++++++++++++++++---------------- README.md | 38 +++++++++++++++++++++++++++----------- 2 files changed, 59 insertions(+), 27 deletions(-) diff --git a/README.en.md b/README.en.md index f8c5d3f..9488768 100644 --- a/README.en.md +++ b/README.en.md @@ -359,15 +359,13 @@ EOF ```fish # Add configuration to ~/.config/fish/config.fish -cat >> ~/.config/fish/config.fish <<'EOF' - -# Input Method Configuration for Fcitx5 -set -Ux GTK_IM_MODULE fcitx -set -Ux QT_IM_MODULE fcitx -set -Ux XMODIFIERS "@im=fcitx" -set -gx SDL_IM_MODULE fcitx -set -gx GLFW_IM_MODULE ibus -EOF +echo 'if status is-login + set -Ux GTK_IM_MODULE fcitx + set -Ux QT_IM_MODULE fcitx + set -Ux XMODIFIERS "@im=fcitx" + set -gx SDL_IM_MODULE fcitx + set -gx GLFW_IM_MODULE ibus +end' >> ~/.config/fish/config.fish ```
@@ -378,7 +376,10 @@ Log out and log in to apply changes. If you still cannot type after logging out
-If the configuration in `~/.bash_profile` or `~/.zprofile` doesn't work, you can try setting it in `/etc/environment` to apply to the entire system: +If the configuration in `~/.bash_profile`, `~/.zprofile` or `.config/fish/config.fish` doesn't work, you can try setting it in `/etc/environment` to apply to the entire system: + +
+Bash/Zsh ```bash cat < + +
+Fish shell + +```fish +echo "GTK_IM_MODULE=fcitx +QT_IM_MODULE=fcitx +XMODIFIERS=@im=fcitx +SDL_IM_MODULE=fcitx +GLFW_IM_MODULE=ibus" | sudo tee -a /etc/environment +``` + +
+ > **Note:** A system restart is required after setup.
@@ -432,15 +448,15 @@ After logging out and logging in again: 2. Find **Lotus** in the right column. 3. Click the **<** arrow to add it to the left column. 4. Apply. -
- Additional configuration for Wayland (KDE, Hyprland) +
+Additional configuration for Wayland (KDE, Hyprland) - **KDE Plasma:** _System Settings_ → _Keyboard_ → _Virtual Keyboard_ → Select **Fcitx 5**. - **Hyprland:** Add the following line to `~/.config/hypr/hyprland.conf`: - ```ini - permission = fcitx5-lotus-server, keyboard, allow - ``` -
+ ```ini + permission = fcitx5-lotus-server, keyboard, allow + ``` +
--- diff --git a/README.md b/README.md index fc3cb5e..84fcb61 100644 --- a/README.md +++ b/README.md @@ -364,15 +364,13 @@ EOF ```fish # Thêm cấu hình vào ~/.config/fish/config.fish -cat >> ~/.config/fish/config.fish <<'EOF' - -# Input Method Configuration for Fcitx5 -set -Ux GTK_IM_MODULE fcitx -set -Ux QT_IM_MODULE fcitx -set -Ux XMODIFIERS "@im=fcitx" -set -gx SDL_IM_MODULE fcitx -set -gx GLFW_IM_MODULE ibus -EOF +echo 'if status is-login + set -Ux GTK_IM_MODULE fcitx + set -Ux QT_IM_MODULE fcitx + set -Ux XMODIFIERS "@im=fcitx" + set -gx SDL_IM_MODULE fcitx + set -gx GLFW_IM_MODULE ibus +end' >> ~/.config/fish/config.fish ``` @@ -383,7 +381,10 @@ Log out và log in để áp dụng thay đổi. Nếu bạn vẫn chưa gõ được sau khi log out
-Nếu cấu hình tại `~/.bash_profile` hoặc `~/.zprofile` không hoạt động, bạn có thể thử thiết lập tại `/etc/environment` để áp dụng cho toàn bộ hệ thống: +Nếu cấu hình tại `~/.bash_profile`, `~/.zprofile` hay `.config/fish/config.fish` không hoạt động, bạn có thể thử thiết lập tại `/etc/environment` để áp dụng cho toàn bộ hệ thống: + +
+Bash/Zsh ```bash cat < + +
+Fish shell + +```fish +echo "GTK_IM_MODULE=fcitx +QT_IM_MODULE=fcitx +XMODIFIERS=@im=fcitx +SDL_IM_MODULE=fcitx +GLFW_IM_MODULE=ibus" | sudo tee -a /etc/environment +``` + +
+ > **Lưu ý:** Cần khởi động lại máy sau khi thiết lập.
@@ -594,7 +610,7 @@ Cảm ơn những con người tuyệt vời ([chú thích emoji](https://allcon Nguyen Hoang Ky
Nguyen Hoang Ky

📝 💻 📖 📆 👀 - Huỳnh Thiện Lộc
Huỳnh Thiện Lộc

🐛 📖 🎨 🌍 + Loc Huynh
Loc Huynh

🐛 📖 🎨 🌍 Nguyễn Hồng Hiệp
Nguyễn Hồng Hiệp

📖 Đặng Quang Hiển
Đặng Quang Hiển

📖 Zebra2711
Zebra2711

🐛 💻