aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorBlista Kanjo2023-07-11 13:23:40 -0400
committerBlista Kanjo2023-07-11 13:23:40 -0400
commita9028fc251dd6f7387bf95f91f196038d3fc5a0a (patch)
tree7f3ac735ea7b946fae0dd3788e4bf5cb73620ae2 /.config
parenteedd1aaac5c7381b68782dd53cf714082fb8ed86 (diff)
refactor: updated deprecated code
Diffstat (limited to '.config')
-rw-r--r--.config/awesome/rc.lua39
1 files changed, 19 insertions, 20 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index c073e16..e0551b1 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -38,24 +38,23 @@ editor_cmd = terminal .. " -e " .. editor
modkey = "Mod4"
-- Table of layouts to cover with awful.layout.inc, order matters.
-awful.layout.layouts = {
- awful.layout.suit.tile,
- awful.layout.suit.max,
--- awful.layout.suit.fair,
--- awful.layout.suit.tile.left,
--- awful.layout.suit.tile.bottom,
--- awful.layout.suit.tile.top,
--- awful.layout.suit.fair.horizontal,
--- awful.layout.suit.spiral,
--- awful.layout.suit.spiral.dwindle,
--- awful.layout.suit.max.fullscreen,
--- awful.layout.suit.magnifier,
--- awful.layout.suit.corner.nw,
--- awful.layout.suit.corner.ne,
--- awful.layout.suit.corner.sw,
--- awful.layout.suit.corner.se,
--- awful.layout.suit.floating,
-}
+tag.connect_signal("request::default_layouts", function()
+ awful.layout.append_default_layouts({
+ -- awful.layout.suit.floating,
+ awful.layout.suit.tile,
+ -- awful.layout.suit.tile.left,
+ -- awful.layout.suit.tile.bottom,
+ -- awful.layout.suit.tile.top,
+ -- awful.layout.suit.fair,
+ -- awful.layout.suit.fair.horizontal,
+ -- awful.layout.suit.spiral,
+ -- awful.layout.suit.spiral.dwindle,
+ awful.layout.suit.max,
+ -- awful.layout.suit.max.fullscreen,
+ -- awful.layout.suit.magnifier,
+ -- awful.layout.suit.corner.nw,
+ })
+end)
-- }}}
-- {{{ Sub-Menus
@@ -595,7 +594,7 @@ for i = 1, 9 do
end
-- get previous tag (modulo 9 excluding 0 to wrap from 1 to 9)
local tag = client.focus.screen.tags[(t.name - 2) % 9 + 1]
- awful.client.movetotag(tag)
+ client.focus:move_to_tag(tag)
awful.tag.viewprev()
end,
{description = "move client to previous tag and switch to it", group = "tag"}),
@@ -608,7 +607,7 @@ for i = 1, 9 do
end
-- get next tag (modulo 9 excluding 0 to wrap from 9 to 1)
local tag = client.focus.screen.tags[(t.name % 9) + 1]
- awful.client.movetotag(tag)
+ client.focus:move_to_tag(tag)
awful.tag.viewnext()
end,
{description = "move client to next tag and switch to it", group = "tag"})