Using FCITX instead of ibus for input method on wayland

This commit is contained in:
Antoine Phan
2024-08-13 19:32:43 +07:00
parent 34876bf776
commit 94d939f85c
4 changed files with 22 additions and 6 deletions

View File

@@ -16,3 +16,4 @@ gtk-xft-hinting=1
gtk-xft-hintstyle=hintmedium gtk-xft-hintstyle=hintmedium
gtk-modules=gail:atk-bridge gtk-modules=gail:atk-bridge
gtk-xft-rgba=rgba gtk-xft-rgba=rgba
gtk-im-module=fcitx

View File

@@ -1,2 +1,3 @@
[Settings] [Settings]
gtk-application-prefer-dark-theme=1 gtk-application-prefer-dark-theme=1
gtk-im-module=fcitx

View File

@@ -3,10 +3,10 @@ monitor=eDP-1,1920x1080@60,0x0,1
# --- Second monitor via HDMI-A --- # --- Second monitor via HDMI-A ---
# Automatic/To the right # Automatic/To the right
# monitor=,1920x1080@165,auto,1 monitor=,1920x1080@165,auto,1
# Second monitor on the left # Second monitor on the left
monitor=,1920x1080@165, -1920x0, 1 # monitor=,1920x1080@165, -1920x0, 1
# monitor = , highres, 0x-1080, 1 # monitor = , highres, 0x-1080, 1
@@ -19,7 +19,7 @@ monitor=,1920x1080@165, -1920x0, 1
exec-once = waybar exec-once = waybar
exec-once = hyprpaper exec-once = hyprpaper
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# exec-once = ibus-daemon -rxRd exec-once = fcitx5 -d
# Set programs that you use # Set programs that you use
$terminal = alacritty $terminal = alacritty
@@ -43,6 +43,7 @@ input {
touchpad { touchpad {
natural_scroll = yes natural_scroll = yes
clickfinger_behavior = true
} }
sensitivity = 0 # -1.0 - 1.0, 0 means no modification. sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
@@ -260,6 +261,15 @@ bind = $mainMod CTRL SHIFT, S, exec, grim -g "$(slurp -d)" - > $HOME/Screenshots
# Wholescreen, save to $HOME/Screenshots/ # Wholescreen, save to $HOME/Screenshots/
bind = , Print, exec, grim - > $HOME/Screenshots/Screenshot_$(date +%F_%T).png bind = , Print, exec, grim - > $HOME/Screenshots/Screenshot_$(date +%F_%T).png
# Enviroment variables
env = GDK_BACKEND,wayland,x11,*
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_QPA_PLATFORM,wayland;xcb
env = GTK_IM_MODULE, fcitx
env = QT_IM_MODULE, fcitx
env = XMODIFIERS, @im=fcitx
# NVIDIA # NVIDIA
#env = LIBVA_DRIVER_NAME,nvidia #env = LIBVA_DRIVER_NAME,nvidia
#env = XDG_SESSION_TYPE,wayland #env = XDG_SESSION_TYPE,wayland

View File

@@ -143,9 +143,13 @@ alias please='sudo'
alias ibus-en='ibus engine xkb:us:intl:eng' alias ibus-en='ibus engine xkb:us:intl:eng'
alias ibus-vn='ibus engine Bamboo' alias ibus-vn='ibus engine Bamboo'
export GTK_IM_MODULE=ibus # export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus # export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus # export XMODIFIERS=@im=ibus
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export GPG_TTY=$(tty) export GPG_TTY=$(tty)