new: add fcitx5 module
This commit is contained in:
@@ -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