new: add fcitx5 module
This commit is contained in:
@@ -39,6 +39,7 @@ settings["modules"] = {
|
|||||||
swayosd = true,
|
swayosd = true,
|
||||||
cliphist = true,
|
cliphist = true,
|
||||||
pypr = true,
|
pypr = true,
|
||||||
|
fcitx5 = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
return require("lua.lib.utils").extend_config(settings, "lua.user.settings")
|
return require("lua.lib.utils").extend_config(settings, "lua.user.settings")
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user