From 42882489bfdd95406c2b97666170f21d89cb7b4b Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 3 Sep 2020 06:19:40 -0500 Subject: [PATCH] moving to newer apis for minimize and unminimize --- awesome/rc.lua | 16 ++++++++++------ awesome/rc.org | 16 ++++++++++------ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/awesome/rc.lua b/awesome/rc.lua index 9273f06..246ec20 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -407,7 +407,7 @@ root.buttons(gears.table.join( -- }}} -- {{{ Key bindings -globalkeys = gears.table.join( +awful.keyboard.append_global_keybindings({ awful.key({ modkey, }, "s", hotkeys_popup.show_help, {description="show help", group="awesome"}), awful.key({ modkey, }, "Left", awful.tag.viewprev, @@ -571,9 +571,10 @@ globalkeys = gears.table.join( -- Menubar awful.key({ modkey }, "p", function() menubar.show() end, {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", function (c) c.fullscreen = not c.fullscreen @@ -615,7 +616,9 @@ clientkeys = gears.table.join( c:raise() end , {description = "(un)maximize horizontally", group = "client"}) -) + }) +end) + -- Bind all key numbers to tags. -- Be careful: we use keycodes to make it work on any keyboard layout. @@ -687,7 +690,7 @@ root.keys(globalkeys) -- {{{ Rules -- 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 { -- All clients will match this rule. rule = {}, @@ -715,7 +718,8 @@ client.connect_signal("request::rules", function(c) properties = { placement = awful.placement.centered, floating = true, - ontop = true + ontop = true, + raise = true }, } diff --git a/awesome/rc.org b/awesome/rc.org index ecdc831..0254257 100644 --- a/awesome/rc.org +++ b/awesome/rc.org @@ -480,7 +480,7 @@ root.buttons(gears.table.join( #+BEGIN_SRC lua :tangle yes -- {{{ Key bindings -globalkeys = gears.table.join( +awful.keyboard.append_global_keybindings({ awful.key({ modkey, }, "s", hotkeys_popup.show_help, {description="show help", group="awesome"}), awful.key({ modkey, }, "Left", awful.tag.viewprev, @@ -644,9 +644,10 @@ globalkeys = gears.table.join( -- Menubar awful.key({ modkey }, "p", function() menubar.show() end, {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", function (c) c.fullscreen = not c.fullscreen @@ -688,7 +689,9 @@ clientkeys = gears.table.join( c:raise() end , {description = "(un)maximize horizontally", group = "client"}) -) + }) +end) + -- Bind all key numbers to tags. -- 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 -- {{{ Rules -- 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 { -- All clients will match this rule. rule = {}, @@ -793,7 +796,8 @@ client.connect_signal("request::rules", function(c) properties = { placement = awful.placement.centered, floating = true, - ontop = true + ontop = true, + raise = true }, }