Skip to content

Commit 7e92271

Browse files
committed
add instruction for kde
1 parent 6391258 commit 7e92271

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

src/views/Home.vue

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ const commands: Record<string, string> = {
271271
serverFish:
272272
'sudo systemctl enable --now fcitx5-lotus-server@(whoami).service; or begin\n sudo systemd-sysusers; and sudo systemctl enable --now fcitx5-lotus-server@(whoami).service\nend',
273273
envBash: `cat <<EOF >> ~/.bash_profile\nexport GTK_IM_MODULE=fcitx\nexport QT_IM_MODULE=fcitx\nexport XMODIFIERS=@im=fcitx\nexport SDL_IM_MODULE=fcitx\nexport GLFW_IM_MODULE=ibus\nEOF`,
274+
envZsh: `cat <<EOF >> ~/.zprofile\nexport GTK_IM_MODULE=fcitx\nexport QT_IM_MODULE=fcitx\nexport XMODIFIERS=@im=fcitx\nexport SDL_IM_MODULE=fcitx\nexport GLFW_IM_MODULE=ibus\nEOF`,
274275
envFish: `echo 'if status is-login\n set -Ux GTK_IM_MODULE fcitx\n set -Ux QT_IM_MODULE fcitx\n set -Ux XMODIFIERS "@im=fcitx"\n set -gx SDL_IM_MODULE fcitx\n set -gx GLFW_IM_MODULE ibus\nend' >> ~/.config/fish/config.fish`,
275276
envGlobal: `cat <<EOF | sudo tee -a /etc/environment\nGTK_IM_MODULE=fcitx\nQT_IM_MODULE=fcitx\nXMODIFIERS=@im=fcitx\nSDL_IM_MODULE=fcitx\nGLFW_IM_MODULE=ibus\nEOF`,
276277
killIbus: 'killall ibus-daemon || ibus exit',
@@ -784,7 +785,7 @@ const copyToClipboard = async (text: string | undefined): Promise<void> => {
784785
<strong>Cần Log out và Log in lại sau khi chạy lệnh</strong>.
785786
</p>
786787
<details class="advanced-details mb-3" open>
787-
<summary>Cấu hình cho Bash / Zsh</summary>
788+
<summary>Cấu hình cho Bash</summary>
788789
<div class="code-block mt-2">
789790
<pre><code>{{ commands.envBash }}</code></pre>
790791
<button
@@ -795,6 +796,18 @@ const copyToClipboard = async (text: string | undefined): Promise<void> => {
795796
</button>
796797
</div>
797798
</details>
799+
<details class="advanced-details mb-3">
800+
<summary>Cấu hình cho Zsh</summary>
801+
<div class="code-block mt-2">
802+
<pre><code>{{ commands.envZsh }}</code></pre>
803+
<button
804+
class="btn-copy"
805+
@click="copyToClipboard(commands.envZsh)"
806+
>
807+
<el-icon><DocumentCopy /></el-icon>
808+
</button>
809+
</div>
810+
</details>
798811
<details class="advanced-details mb-3">
799812
<summary>Cấu hình cho Fish shell</summary>
800813
<div class="code-block mt-2">
@@ -868,6 +881,10 @@ const copyToClipboard = async (text: string | undefined): Promise<void> => {
868881
<details class="advanced-details mt-4">
869882
<summary>Cấu hình bổ sung cho Wayland</summary>
870883
<div class="p-3 border rounded-lg mt-2 text-sm sub-card">
884+
<p class="mb-2 instruction">
885+
<strong>KDE:</strong> System Settings → Keyboard → Virtual
886+
Keyboard → Chọn Fcitx 5.
887+
</p>
871888
<p class="mb-2 instruction">
872889
<strong>Hyprland:</strong> Thêm dòng sau vào file config
873890
</p>

0 commit comments

Comments
 (0)