Skip to content

Commit 0fa9833

Browse files
committed
Awesome: Fix maximize activating titlebar
1 parent decfa63 commit 0fa9833

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.config/awesome/rc.lua

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -287,18 +287,16 @@ globalkeys = awful.util.table.join(
287287
{description = "open browser", group = "launcher"}),
288288
awful.key({ mod_4 }, "e", function () awful.spawn(editor) end,
289289
{description = "open editor", group = "launcher"}),
290-
awful.key({ mod_4 }, "o", function () awful.spawn(filemanager) end,
291-
{description = "open filemanager", group = "launcher"}),
292290
awful.key({ mod_4 }, "w", function () awful.spawn("Whatsapp") end,
293291
{description = "open whatsapp", group = "launcher"}),
294292

295-
awful.key({ }, "Print", function() os.execute("scrot -q 100 ~/pictures/screenshots/$(date +%s).png") end,
293+
awful.key({ }, "Print", function() os.execute("maim ~/pictures/screenshots/$(date +%s).png") end,
296294
{description = "take screenshot", group = "launcher"}),
297-
awful.key({ ctrlkey }, "Print", function() os.execute("scrot -s -q 100 ~/pictures/screenshots/$(date +%s).png") end,
295+
awful.key({ ctrlkey }, "Print", function() os.execute("maim -s -b 3 -c 0.98431372549019607843,0.28627450980392156862,0.20392156862745098039,1 ~/pictures/screenshots/$(date +%s).png") end,
298296
{description = "take screenshot", group = "launcher"}),
299-
awful.key({ shiftkey }, "Print", function() os.execute("maim ~/pictures/screenshots/$(date +%s).png") end,
297+
awful.key({ shiftkey }, "Print", function() os.execute("maim -u ~/pictures/screenshots/$(date +%s).png") end,
300298
{description = "take screenshot", group = "launcher"}),
301-
awful.key({ ctrlkey, shiftkey }, "Print", function() os.execute("maim -s -b 3 -c 0.98431372549019607843,0.28627450980392156862,0.20392156862745098039,1 ~/pictures/screenshots/$(date +%s).png") end,
299+
awful.key({ ctrlkey, shiftkey }, "Print", function() os.execute("maim -u -s -b 3 -c 0.98431372549019607843,0.28627450980392156862,0.20392156862745098039,1 ~/pictures/screenshots/$(date +%s).png") end,
302300
{description = "take screenshot", group = "launcher"}),
303301

304302
-- -- Copy primary to clipboard (terminals to gtk)
@@ -586,18 +584,18 @@ clientkeys = awful.util.table.join(
586584
-- The client currently has the input focus, so it cannot be
587585
-- minimized, since minimized clients can't have the focus.
588586
c.minimized = true
589-
end ,
587+
end,
590588
{description = "minimize", group = "client"}),
591589
awful.key({ mod_4 }, "m",
592590
function (c)
593591
c.maximized = not c.maximized
594592
c:raise()
595-
end ,
593+
end,
596594
{description = "maximize", group = "client"}),
597595
awful.key({ mod_4 }, "i",
598596
function (c)
599597
awful.titlebar.toggle(c)
600-
end ,
598+
end,
601599
{description = "toggle titlebar", group = "client"})
602600
)
603601

@@ -891,7 +889,7 @@ client.connect_signal("property::maximized",
891889

892890
client.connect_signal("property::floating",
893891
function(c)
894-
if c.floating then
892+
if c.floating and not c.maximized then
895893
awful.titlebar.show(c)
896894
else
897895
awful.titlebar.hide(c)
0 Bytes
Loading
-8.85 MB
Binary file not shown.

0 commit comments

Comments
 (0)