awesomewm/modules/ibus/keybinds.lua

47 lines
769 B
Lua
Raw Normal View History

local util = req_rel(..., "util")
local popup = req_rel(..., "popup")
local widget = req_rel(..., "widget")
2021-08-01 07:24:26 -07:00
return gears.table.join(
awful.key( {"Mod4"}, "space",
function()
util.next(function()
popup.update()
widget.update()
end)
2021-08-01 07:24:26 -07:00
end,
{
description = "Change input language",
group = "System"
}
2021-08-08 14:17:06 -07:00
),
2021-08-08 14:17:06 -07:00
awful.key( {"Mod4", "Shift", "Control"}, "9",
function()
util.set(2, function()
popup.update()
widget.update()
end)
2021-08-08 14:17:06 -07:00
end,
{
description = "Set input language to RU",
group = "System"
}
),
2021-08-08 14:17:06 -07:00
awful.key( {"Mod4", "Shift", "Control"}, "0",
function()
util.set(1, function()
popup.update()
widget.update()
end)
2021-08-08 14:17:06 -07:00
end,
{
description = "Set input language to EN",
group = "System"
}
2021-08-01 07:24:26 -07:00
)
)