Skip to content

Commit

Permalink
awesome: Rework tags
Browse files Browse the repository at this point in the history
Now only two layouts are available and the first tag defaults to max so
I can have several browser windows stacked.
  • Loading branch information
juanibiapina committed Dec 7, 2023
1 parent 2c60cf8 commit 87a948a
Showing 1 changed file with 36 additions and 4 deletions.
40 changes: 36 additions & 4 deletions dotfiles/awesome/.config/awesome/rc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ modkey = "Mod1"

-- Table of layouts to cover with awful.layout.inc, order matters.
awful.layout.layouts = {
awful.layout.suit.floating,
-- awful.layout.suit.floating,
awful.layout.suit.tile,
-- awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
-- awful.layout.suit.tile.bottom,
-- awful.layout.suit.tile.top,
awful.layout.suit.fair,
-- awful.layout.suit.fair,
-- awful.layout.suit.fair.horizontal,
-- awful.layout.suit.spiral,
-- awful.layout.suit.spiral.dwindle,
Expand Down Expand Up @@ -193,7 +193,39 @@ awful.screen.connect_for_each_screen(function(s)
set_wallpaper(s)

-- Each screen has its own tag table.
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[2])
awful.tag.add("1", {
layout = awful.layout.suit.max,
screen = s,
selected = true,
})
awful.tag.add("2", {
layout = awful.layout.suit.tile,
screen = s,
})
awful.tag.add("3", {
layout = awful.layout.suit.tile,
screen = s,
})
awful.tag.add("4", {
layout = awful.layout.suit.tile,
screen = s,
})
awful.tag.add("5", {
layout = awful.layout.suit.tile,
screen = s,
})
awful.tag.add("6", {
layout = awful.layout.suit.tile,
screen = s,
})
awful.tag.add("7", {
layout = awful.layout.suit.tile,
screen = s,
})
awful.tag.add("8", {
layout = awful.layout.suit.tile,
screen = s,
})

-- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt()
Expand Down

0 comments on commit 87a948a

Please sign in to comment.