Add Firefox key
This commit is contained in:
parent
6338e4cac3
commit
207f847a1c
|
@ -142,6 +142,13 @@ keys.globalkeys = gears.table.join(
|
|||
end,
|
||||
{description = "open a terminal", group = "launcher"}
|
||||
),
|
||||
-- Spawn browser
|
||||
awful.key({modkey}, "f",
|
||||
function()
|
||||
awful.spawn("firefox-developer-edition")
|
||||
end,
|
||||
{description = "open a terminal", group = "launcher"}
|
||||
),
|
||||
-- launch rofi
|
||||
awful.key({modkey}, "d",
|
||||
function()
|
||||
|
|
|
@ -28,24 +28,6 @@ local rules = {}
|
|||
|
||||
-- return a table of client rules including provided keys / buttons
|
||||
function rules.create(clientkeys, clientbuttons)
|
||||
local rofi_rule = {}
|
||||
|
||||
if beautiful.name == "mirage" then
|
||||
rofi_rule = {
|
||||
rule_any = {name = {"rofi"}},
|
||||
properties = {floating = true, titlebars_enabled = false},
|
||||
callback = function(c)
|
||||
if beautiful.name == "mirage" then
|
||||
awful.placement.left(c)
|
||||
end
|
||||
end
|
||||
}
|
||||
else rofi_rule = {
|
||||
rule_any = {name = {"rofi"}},
|
||||
properties = {maximized = true, floating = true, titlebars_enabled = false},
|
||||
}
|
||||
end
|
||||
|
||||
return {
|
||||
-- All clients will match this rule.
|
||||
{
|
||||
|
@ -125,9 +107,6 @@ function rules.create(clientkeys, clientbuttons)
|
|||
end
|
||||
},
|
||||
|
||||
-- rofi rule determined above
|
||||
rofi_rule,
|
||||
|
||||
-- File chooser dialog
|
||||
{
|
||||
rule_any = {role = {"GtkFileChooserDialog"}},
|
||||
|
|
Loading…
Reference in New Issue