Fix wayland config

This commit is contained in:
rydesun 2026-06-30 22:45:00 +08:00
parent c98651c8c5
commit 1d674579bb
3 changed files with 5 additions and 12 deletions

View file

@ -1,8 +1,12 @@
allow_remote_control socket-only
listen_on unix:/tmp/kitty
# 强制走xwayland
# 使用不支持text_input_v3的qtile时需要
linux_display_server x11
# {{{ 主题
font_size 15
font_size 10
background_opacity 0.95
# 关闭响铃声音

View file

@ -1,4 +0,0 @@
Xft/Hinting 1
Xft/HintStyle "hintslight"
Xft/Antialias 1
Xft/RGBA "rgb"

View file

@ -90,10 +90,6 @@ export SDL_IM_MODULE=fcitx
export GLFW_IM_MODULE=ibus
# }}}
# 同步所有环境变量到所有systemd将要启动的程序
command -v dbus-update-activation-environment &>/dev/null && \
dbus-update-activation-environment --systemd --all 2>/dev/null
USE_WAYLAND=true
# NOTE: 直接在登录shell中自启桌面环境
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
@ -105,9 +101,6 @@ if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
## QTile尚不支持wayland输入法相关协议
export GTK_IM_MODULE=fcitx
command -v dbus-update-activation-environment &>/dev/null && \
dbus-update-activation-environment --systemd --all 2>/dev/null
if $USE_WAYLAND; then
qtile start -b wayland
else