diff --git a/binds/desktop/launcher.lua b/binds/desktop/launcher.lua index c7cfede..fe78994 100755 --- a/binds/desktop/launcher.lua +++ b/binds/desktop/launcher.lua @@ -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() diff --git a/binds/system/input.lua b/binds/system/input.lua index 9b6d463..5bc4c56 100644 --- a/binds/system/input.lua +++ b/binds/system/input.lua @@ -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" + } ) ) diff --git a/desktop/popups/language.lua b/desktop/popups/language.lua index f8d8390..d81d5fe 100644 --- a/desktop/popups/language.lua +++ b/desktop/popups/language.lua @@ -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"])