moving to newer apis for minimize and unminimize
This commit is contained in:
parent
24e347ed36
commit
42882489bf
|
@ -407,7 +407,7 @@ root.buttons(gears.table.join(
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Key bindings
|
-- {{{ Key bindings
|
||||||
globalkeys = gears.table.join(
|
awful.keyboard.append_global_keybindings({
|
||||||
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
||||||
{description="show help", group="awesome"}),
|
{description="show help", group="awesome"}),
|
||||||
awful.key({ modkey, }, "Left", awful.tag.viewprev,
|
awful.key({ modkey, }, "Left", awful.tag.viewprev,
|
||||||
|
@ -571,9 +571,10 @@ globalkeys = gears.table.join(
|
||||||
-- Menubar
|
-- Menubar
|
||||||
awful.key({ modkey }, "p", function() menubar.show() end,
|
awful.key({ modkey }, "p", function() menubar.show() end,
|
||||||
{description = "show the menubar", group = "launcher"})
|
{description = "show the menubar", group = "launcher"})
|
||||||
)
|
})
|
||||||
|
|
||||||
clientkeys = gears.table.join(
|
client.connect_signal("request::default_keybindings", function()
|
||||||
|
awful.keyboard.append_client_keybindings({
|
||||||
awful.key({ modkey, }, "f",
|
awful.key({ modkey, }, "f",
|
||||||
function (c)
|
function (c)
|
||||||
c.fullscreen = not c.fullscreen
|
c.fullscreen = not c.fullscreen
|
||||||
|
@ -615,7 +616,9 @@ clientkeys = gears.table.join(
|
||||||
c:raise()
|
c:raise()
|
||||||
end ,
|
end ,
|
||||||
{description = "(un)maximize horizontally", group = "client"})
|
{description = "(un)maximize horizontally", group = "client"})
|
||||||
)
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
|
|
||||||
-- Bind all key numbers to tags.
|
-- Bind all key numbers to tags.
|
||||||
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
||||||
|
@ -687,7 +690,7 @@ root.keys(globalkeys)
|
||||||
|
|
||||||
-- {{{ Rules
|
-- {{{ Rules
|
||||||
-- Rules to apply to new clients (through the "manage" signal).
|
-- Rules to apply to new clients (through the "manage" signal).
|
||||||
client.connect_signal("request::rules", function(c)
|
ruled.client.connect_signal('request::manage', function()
|
||||||
ruled.client.append_rule {
|
ruled.client.append_rule {
|
||||||
-- All clients will match this rule.
|
-- All clients will match this rule.
|
||||||
rule = {},
|
rule = {},
|
||||||
|
@ -715,7 +718,8 @@ client.connect_signal("request::rules", function(c)
|
||||||
properties = {
|
properties = {
|
||||||
placement = awful.placement.centered,
|
placement = awful.placement.centered,
|
||||||
floating = true,
|
floating = true,
|
||||||
ontop = true
|
ontop = true,
|
||||||
|
raise = true
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -480,7 +480,7 @@ root.buttons(gears.table.join(
|
||||||
|
|
||||||
#+BEGIN_SRC lua :tangle yes
|
#+BEGIN_SRC lua :tangle yes
|
||||||
-- {{{ Key bindings
|
-- {{{ Key bindings
|
||||||
globalkeys = gears.table.join(
|
awful.keyboard.append_global_keybindings({
|
||||||
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
|
||||||
{description="show help", group="awesome"}),
|
{description="show help", group="awesome"}),
|
||||||
awful.key({ modkey, }, "Left", awful.tag.viewprev,
|
awful.key({ modkey, }, "Left", awful.tag.viewprev,
|
||||||
|
@ -644,9 +644,10 @@ globalkeys = gears.table.join(
|
||||||
-- Menubar
|
-- Menubar
|
||||||
awful.key({ modkey }, "p", function() menubar.show() end,
|
awful.key({ modkey }, "p", function() menubar.show() end,
|
||||||
{description = "show the menubar", group = "launcher"})
|
{description = "show the menubar", group = "launcher"})
|
||||||
)
|
})
|
||||||
|
|
||||||
clientkeys = gears.table.join(
|
client.connect_signal("request::default_keybindings", function()
|
||||||
|
awful.keyboard.append_client_keybindings({
|
||||||
awful.key({ modkey, }, "f",
|
awful.key({ modkey, }, "f",
|
||||||
function (c)
|
function (c)
|
||||||
c.fullscreen = not c.fullscreen
|
c.fullscreen = not c.fullscreen
|
||||||
|
@ -688,7 +689,9 @@ clientkeys = gears.table.join(
|
||||||
c:raise()
|
c:raise()
|
||||||
end ,
|
end ,
|
||||||
{description = "(un)maximize horizontally", group = "client"})
|
{description = "(un)maximize horizontally", group = "client"})
|
||||||
)
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
|
|
||||||
-- Bind all key numbers to tags.
|
-- Bind all key numbers to tags.
|
||||||
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
||||||
|
@ -765,7 +768,7 @@ root.keys(globalkeys)
|
||||||
#+BEGIN_SRC lua :tangle yes
|
#+BEGIN_SRC lua :tangle yes
|
||||||
-- {{{ Rules
|
-- {{{ Rules
|
||||||
-- Rules to apply to new clients (through the "manage" signal).
|
-- Rules to apply to new clients (through the "manage" signal).
|
||||||
client.connect_signal("request::rules", function(c)
|
ruled.client.connect_signal('request::manage', function()
|
||||||
ruled.client.append_rule {
|
ruled.client.append_rule {
|
||||||
-- All clients will match this rule.
|
-- All clients will match this rule.
|
||||||
rule = {},
|
rule = {},
|
||||||
|
@ -793,7 +796,8 @@ client.connect_signal("request::rules", function(c)
|
||||||
properties = {
|
properties = {
|
||||||
placement = awful.placement.centered,
|
placement = awful.placement.centered,
|
||||||
floating = true,
|
floating = true,
|
||||||
ontop = true
|
ontop = true,
|
||||||
|
raise = true
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue