awesome/lib/awful/hotkeys_popup/keys/firefox.lua

42 lines
1.1 KiB
Lua
Raw Permalink Normal View History

---------------------------------------------------------------------------
--- Firefox hotkeys for awful.hotkeys_widget
--
-- @author Jonathan <jonathan@tinypulse.com>
-- @copyright 2017 Jonathan
-- @submodule awful.hotkeys_popup
---------------------------------------------------------------------------
local hotkeys_popup = require("awful.hotkeys_popup.widget")
2020-03-21 15:27:07 +01:00
local fire_rule = { class = { "Firefox", "firefox" } }
for group_name, group_data in pairs({
["Firefox: tabs"] = { color = "#009F00", rule_any = fire_rule }
}) do
hotkeys_popup.add_group_rules(group_name, group_data)
end
local firefox_keys = {
["Firefox: tabs"] = {{
modifiers = { "Mod1" },
keys = {
["1..9"] = "go to tab"
}
}, {
modifiers = { "Ctrl" },
keys = {
t = "new tab",
w = 'close tab',
['Tab'] = "next tab"
}
}, {
modifiers = { "Ctrl", "Shift" },
keys = {
['Tab'] = "previous tab"
}
}}
}
hotkeys_popup.add_hotkeys(firefox_keys)
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80