aboutsummaryrefslogtreecommitdiff
path: root/awesome
diff options
context:
space:
mode:
authorKyle Javier2021-10-04 14:34:00 -0400
committerKyle Javier2021-10-04 14:34:00 -0400
commit45ffdbd667e051b1eacb76f468c2ae1514a1ee1f (patch)
treee24c38b294bb4d0ef8637908304cf1af442b0a04 /awesome
parent96659b4310a4e1c57004b25617435ab44e001569 (diff)
added always on top and sticky client functionality
Diffstat (limited to 'awesome')
-rw-r--r--awesome/rc.lua22
1 files changed, 18 insertions, 4 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua
index 248ec49..e0e6302 100644
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -411,16 +411,30 @@ clientkeys = gears.table.join(
c:raise()
end,
{description = "toggle fullscreen", group = "client"}),
- awful.key({ "Mod1", }, "F4", function (c) c:kill() end,
+ awful.key({ "Mod1", }, "F4", function (c) c:kill() end,
{description = "close", group = "client"}),
- awful.key({ "Shift", "Control" }, "space", awful.client.floating.toggle ,
+ awful.key({ "Shift", "Control" }, "space", awful.client.floating.toggle,
{description = "toggle floating", group = "client"}),
+
+ -- Sticky Window and Always on top toggle
+ awful.key({"Control", }, "space", function(c) c.ontop = not c.ontop end,
+ {description = "toggle always on top", group = "client"}),
+ awful.key({ modkey, "Shift" }, "slash", function (c) c.sticky = not c.sticky end,
+ {description = "toggle sticky", group = "client"}),
+
+ -- Original Keep On Top Function
+
+ --[[awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
+ {description = "toggle keep on top", group = "client"}),]]--
+
+ -- End Original Function
+
+ -- _____________________________________________________________
+
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
{description = "move to master", group = "client"}),
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
{description = "move to screen", group = "client"}),
- awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
- {description = "toggle keep on top", group = "client"}),
awful.key({ "Mod1", }, "Left",
function (c)
-- The client currently has the input focus, so it cannot be