From 54f65586e1e67106b18ffeadf5894542117a2e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 30 Oct 2023 15:49:36 +0300 Subject: fcitx5 as IME --- dotfiles/.config/fcitx5/config | 73 +++++++++++++++++++++++++++++++++++++++++ dotfiles/.config/fcitx5/profile | 23 +++++++++++++ dotfiles/.config/sway/config | 4 ++- dotfiles/.profile | 6 ++++ 4 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 dotfiles/.config/fcitx5/config create mode 100644 dotfiles/.config/fcitx5/profile (limited to 'dotfiles') diff --git a/dotfiles/.config/fcitx5/config b/dotfiles/.config/fcitx5/config new file mode 100644 index 0000000..4f042f4 --- /dev/null +++ b/dotfiles/.config/fcitx5/config @@ -0,0 +1,73 @@ +[Hotkey] +# Enumerate when press trigger key repeatedly +EnumerateWithTriggerKeys=True +# Enumerate Input Method Forward +EnumerateForwardKeys= +# Enumerate Input Method Backward +EnumerateBackwardKeys= +# Skip first input method while enumerating +EnumerateSkipFirst=False + +[Hotkey/TriggerKeys] +0=Control+space +1=Zenkaku_Hankaku +2=Hangul + +[Hotkey/AltTriggerKeys] +0=Shift_L + +[Hotkey/EnumerateGroupForwardKeys] +0=Super+space + +[Hotkey/EnumerateGroupBackwardKeys] +0=Shift+Super+space + +[Hotkey/ActivateKeys] +0=Hangul_Hanja + +[Hotkey/DeactivateKeys] +0=Hangul_Romaja + +[Hotkey/PrevPage] +0=Up + +[Hotkey/NextPage] +0=Down + +[Hotkey/PrevCandidate] +0=Shift+Tab + +[Hotkey/NextCandidate] +0=Tab + +[Hotkey/TogglePreedit] +0=Control+Alt+P + +[Behavior] +# Active By Default +ActiveByDefault=False +# Share Input State +ShareInputState=No +# Show preedit in application +PreeditEnabledByDefault=True +# Show Input Method Information when switch input method +ShowInputMethodInformation=True +# Show Input Method Information when changing focus +showInputMethodInformationWhenFocusIn=False +# Show compact input method information +CompactInputMethodInformation=True +# Show first input method information +ShowFirstInputMethodInformation=True +# Default page size +DefaultPageSize=5 +# Override Xkb Option +OverrideXkbOption=False +# Custom Xkb Option +CustomXkbOption= +# Force Enabled Addons +EnabledAddons= +# Force Disabled Addons +DisabledAddons= +# Preload input method to be used by default +PreloadInputMethod=True + diff --git a/dotfiles/.config/fcitx5/profile b/dotfiles/.config/fcitx5/profile new file mode 100644 index 0000000..5dc8c41 --- /dev/null +++ b/dotfiles/.config/fcitx5/profile @@ -0,0 +1,23 @@ +[Groups/0] +# Group Name +Name=Default +# Layout +Default Layout=us +# Default Input Method +DefaultIM=mozc + +[Groups/0/Items/0] +# Name +Name=keyboard-us +# Layout +Layout= + +[Groups/0/Items/1] +# Name +Name=mozc +# Layout +Layout= + +[GroupOrder] +0=Default + diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config index 90d7c65..9e417db 100644 --- a/dotfiles/.config/sway/config +++ b/dotfiles/.config/sway/config @@ -81,6 +81,8 @@ exec mako exec_always setsessionenv # xdg-desktop-portal screen sharing crap exec dbus-update-activation-environment DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway +# IME (env var "unset" so that it will shut up about Wayland support) +exec GTK_IM_MODULE= fcitx5 -d # Workspace names # to display names or symbols instead of plain workspace numbers you can use @@ -180,7 +182,7 @@ bindsym --to-code { $mod+q kill # rofi launcher - $mod+d exec rofi -show drun -sidebar-mode -modi "drun,run,file-browser-extended,ssh,combi" + $mod+d exec rofi -show drun -sidebar-mode -modi "drun,run,filebrowser,ssh,combi" # Mako (notifications) $mod+Ctrl+space exec "makoctl dismiss" diff --git a/dotfiles/.profile b/dotfiles/.profile index f3ff763..673ab4e 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -11,6 +11,12 @@ export QT_QPA_PLATFORMTHEME="qt5ct" export _JAVA_AWT_WM_NONREPARENTING=1 export MOZ_ENABLE_WAYLAND=1 +# Input method +export GTK_IM_MODULE=fcitx +export QT_IM_MODULE=fcitx +export SDL_IM_MODULE=fcitx +export XMODIFIERS='@im=fcitx' + # User-specific environment and startup programs: export LANG=en_US.UTF-8 export TERMINAL=foot -- cgit v1.2.3