Added new binds
parent
e621eafdf5
commit
ceaf633c43
|
@ -9,6 +9,44 @@ return gears.table.join(
|
|||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4", "Shift", "Control"}, "1",
|
||||
function ()
|
||||
awful.spawn(conf.app_1)
|
||||
end,
|
||||
{
|
||||
description = "Run app 1",
|
||||
group = "Launcher"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4", "Shift", "Control"}, "2",
|
||||
function ()
|
||||
awful.spawn(conf.app_2)
|
||||
end,
|
||||
{
|
||||
description = "Run app 2",
|
||||
group = "Launcher"
|
||||
}
|
||||
),
|
||||
awful.key( {"Mod4", "Shift", "Control"}, "3",
|
||||
function ()
|
||||
awful.spawn(conf.app_3)
|
||||
end,
|
||||
{
|
||||
description = "Run app 3",
|
||||
group = "Launcher"
|
||||
}
|
||||
),
|
||||
awful.key( {"Mod4", "Shift", "Control"}, "4",
|
||||
function ()
|
||||
awful.spawn(conf.app_4)
|
||||
end,
|
||||
{
|
||||
description = "Run app 4",
|
||||
group = "Launcher"
|
||||
}
|
||||
),
|
||||
|
||||
awful.key( {"Mod4"}, "x",
|
||||
function ()
|
||||
awful.screen.focused().mypromptbox:run()
|
||||
|
|
|
@ -7,5 +7,23 @@ return gears.table.join(
|
|||
description = "Change input language",
|
||||
group = "System"
|
||||
}
|
||||
),
|
||||
awful.key( {"Mod4", "Shift", "Control"}, "9",
|
||||
function()
|
||||
desktop.popup.language.set(2)
|
||||
end,
|
||||
{
|
||||
description = "Set input language to RU",
|
||||
group = "System"
|
||||
}
|
||||
),
|
||||
awful.key( {"Mod4", "Shift", "Control"}, "0",
|
||||
function()
|
||||
desktop.popup.language.set(1)
|
||||
end,
|
||||
{
|
||||
description = "Set input language to EN",
|
||||
group = "System"
|
||||
}
|
||||
)
|
||||
)
|
||||
|
|
|
@ -54,6 +54,14 @@ language.next = function()
|
|||
language.show_popup()
|
||||
end
|
||||
|
||||
language.set = function(idx)
|
||||
debug_message(idx)
|
||||
wrapper.ibus.set(idx, function()
|
||||
language.update_checks()
|
||||
end)
|
||||
language.show_popup()
|
||||
end
|
||||
|
||||
language.update_checks = function()
|
||||
for _, l in pairs(language.language_list) do
|
||||
l["widget_checkbox"].checked = (wrapper.ibus.current_engine == l["ibus_engine"])
|
||||
|
|
Loading…
Reference in New Issue