From f01b82820f74348a11bbd58f38f87c3f604ec8b7 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sat, 25 Mar 2023 06:33:58 -0400 Subject: [PATCH] New Windows Open in Stack - Add force close window keybinding - Add "shift" to fullscreen keybinding - Have new windows open in stack, not master --- README.org | 10 ++++++---- rc.lua | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.org b/README.org index 05f98f0..2a58012 100644 --- a/README.org +++ b/README.org @@ -437,15 +437,17 @@ globalkeys = gears.table.join( awful.key({ }, "XF86AudioPrev", function() awful.spawn(player_prev_cmd) end, {description = "Previous media track", group = "media"}), - -- Special Keys + -- Special Keys and Miscellaneous Shortcuts awful.key({ }, "XF86TouchpadToggle", function() awful.spawn(trackpad_toggle_cmd) end, {description = "Enable / Disable Touchpad", group = "misc"}), awful.key({ }, "Print", function() awful.spawn(flameshot_cmd) end, - {description = "Take a screenshot", group = "misc"}) + {description = "Take a screenshot", group = "misc"}), + awful.key({ modkey, "Shift", "Control" }, "c", function () awful.spawn(force_close_window_cmd) end, + {description = "force close window", group = "misc"}) ) clientkeys = gears.table.join( - awful.key({ modkey, }, "f", + awful.key({ modkey, "Shift" }, "f", function (c) c.fullscreen = not c.fullscreen c:raise() @@ -627,7 +629,7 @@ awful.rules.rules = { client.connect_signal("manage", function (c) -- Set the windows at the slave, -- i.e. put it at the end of others instead of setting it master. - -- if not awesome.startup then awful.client.setslave(c) end + if not awesome.startup then awful.client.setslave(c) end if awesome.startup and not c.size_hints.user_position diff --git a/rc.lua b/rc.lua index df019cd..b487532 100644 --- a/rc.lua +++ b/rc.lua @@ -377,15 +377,17 @@ globalkeys = gears.table.join( awful.key({ }, "XF86AudioPrev", function() awful.spawn(player_prev_cmd) end, {description = "Previous media track", group = "media"}), - -- Special Keys + -- Special Keys and Miscellaneous Shortcuts awful.key({ }, "XF86TouchpadToggle", function() awful.spawn(trackpad_toggle_cmd) end, {description = "Enable / Disable Touchpad", group = "misc"}), awful.key({ }, "Print", function() awful.spawn(flameshot_cmd) end, - {description = "Take a screenshot", group = "misc"}) + {description = "Take a screenshot", group = "misc"}), + awful.key({ modkey, "Shift", "Control" }, "c", function () awful.spawn(force_close_window_cmd) end, + {description = "force close window", group = "misc"}) ) clientkeys = gears.table.join( - awful.key({ modkey, }, "f", + awful.key({ modkey, "Shift" }, "f", function (c) c.fullscreen = not c.fullscreen c:raise() @@ -559,7 +561,7 @@ awful.rules.rules = { client.connect_signal("manage", function (c) -- Set the windows at the slave, -- i.e. put it at the end of others instead of setting it master. - -- if not awesome.startup then awful.client.setslave(c) end + if not awesome.startup then awful.client.setslave(c) end if awesome.startup and not c.size_hints.user_position