new: add fcitx5 module

This commit is contained in:
2026-05-30 14:23:06 -04:00
parent a4edeec23b
commit 900c1c8922
2 changed files with 25 additions and 0 deletions
+1
View File
@@ -39,6 +39,7 @@ settings["modules"] = {
swayosd = true,
cliphist = true,
pypr = true,
fcitx5 = false,
}
return require("lua.lib.utils").extend_config(settings, "lua.user.settings")
+24
View File
@@ -0,0 +1,24 @@
local bind = require("lua.lib.bind")
local M = {}
M.binds = {
{
keys = bind.with_leader("CTRL + E"),
dispatcher = hl.dsp.exec_cmd("pkill fcitx5 -9;sleep 1;fcitx5 -d"),
desc = "restart fcitx5",
},
}
M.autostart = {
function()
hl.exec_cmd("fcitx5 -d")
end,
}
M.envs = {
QT_IM_MODULE = "fcitx",
XMODIFIERS = "@im=fcitx",
}
return M