Debian Codegraph @

lib/awful/hotkeys_popup/keys/firefox.lua

raw
1 ---------------------------------------------------------------------------
2 --- Firefox hotkeys for awful.hotkeys_widget
3 --
4 -- @author Jonathan <[email protected]>
5 -- @copyright 2017 Jonathan
6 -- @submodule awful.hotkeys_popup
7 ---------------------------------------------------------------------------
8
9 local hotkeys_popup = require("awful.hotkeys_popup.widget")
10 local fire_rule = { class = { "Firefox" } }
11 for group_name, group_data in pairs({
12 ["Firefox: tabs"] = { color = "#009F00", rule_any = fire_rule }
13 }) do
14 hotkeys_popup.add_group_rules(group_name, group_data)
15 end
16
17 local firefox_keys = {
18
19 ["Firefox: tabs"] = {{
20 modifiers = { "Mod1" },
21 keys = {
22 ["1..9"] = "go to tab"
23 }
24 }, {
25 modifiers = { "Ctrl" },
26 keys = {
27 t = "new tab",
28 w = 'close tab',
29 ['Tab'] = "next tab"
30 }
31 }, {
32 modifiers = { "Ctrl", "Shift" },
33 keys = {
34 ['Tab'] = "previous tab"
35 }
36 }}
37 }
38
39 hotkeys_popup.add_hotkeys(firefox_keys)
40
41 -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80