diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 6343c15..7f4c1cd 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -29,23 +29,8 @@ beautiful.init(os.getenv("HOME") .. "/.config/awesome/themes/blackburn/theme.lua -- variables require("settings.variables") -layouts = { - awful.layout.suit.floating, - lain.layout.uselesstile, - awful.layout.suit.fair, - lain.layout.uselesstile.left, - lain.layout.uselesstile.top -} --- }}} - --- {{{ Tags -tags = { - names = { "ƀ", "Ƅ", "Ɗ", "ƈ", "ƙ" }, - layout = { layouts[1], layouts[3], layouts[2], layouts[1], layouts[5] } -} -for s = 1, screen.count() do - tags[s] = awful.tag(tags.names, s, tags.layout) -end +-- Tags and layouts +require("settings.tags") -- }}} -- {{{ Wallpaper diff --git a/rc.lua.copland b/rc.lua.copland index 69bddd4..9b792ac 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -36,27 +36,8 @@ lain.layout.termfair.ncol = 1 lain.layout.centerfair.nmaster = 3 lain.layout.centerfair.ncol = 1 -layouts = { - awful.layout.suit.floating, - awful.layout.suit.fair, - awful.layout.suit.tile, - lain.layout.uselessfair.horizontal, - lain.layout.uselesstile, - lain.layout.uselessfair, - lain.layout.termfair, - lain.layout.centerfair, - lain.layout.uselesspiral.dwindle -} --- }}} - --- {{{ Tags -tags = { - names = { "start", "2", "3", "4", "5" }, - layout = { layouts[1], layouts[2], layouts[3], layouts[4], layouts[5] } -} -for s = 1, screen.count() do - tags[s] = awful.tag(tags.names, s, tags.layout) -end +-- Tags and layouts +require("settings.tags") -- }}} -- {{{ Wallpaper diff --git a/rc.lua.dremora b/rc.lua.dremora index 59e7d1f..08ef791 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -29,23 +29,8 @@ beautiful.init(awful.util.getdir("config") .. "/themes/dremora/theme.lua") -- variables require("settings.variables") -layouts = { - awful.layout.suit.floating, - lain.layout.uselesstile, - awful.layout.suit.fair, - lain.layout.uselesstile.left, - lain.layout.uselesstile.top -} --- }}} - --- {{{ Tags -tags = { - names = { "ƀ", "Ƅ", "Ɗ", "ƈ", "ƙ" }, - layout = { layouts[1], layouts[3], layouts[2], layouts[1], layouts[5] } -} -for s = 1, screen.count() do - tags[s] = awful.tag(tags.names, s, tags.layout) -end +-- Tags and layouts +require("settings.tags") -- }}} -- {{{ Wallpaper diff --git a/rc.lua.holo b/rc.lua.holo index 9b5db6c..bfe21bb 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -31,23 +31,8 @@ require("settings.variables") musiplr = terminal .. " -e ncmpcpp " -layouts = { - awful.layout.suit.floating, - lain.layout.uselesstile, - awful.layout.suit.fair, - lain.layout.uselesstile.left, - lain.layout.uselesstile.top -} --- }}} - --- {{{ Tags -tags = { - names = { " WEB ", " TERMINAL ", " FILES ", " OTHER " }, - layout = { layouts[1], layouts[3], layouts[2], layouts[4] } -} -for s = 1, screen.count() do - tags[s] = awful.tag(tags.names, s, tags.layout) -end +-- Tags and layouts +require("settings.tags") -- }}} -- {{{ Wallpaper diff --git a/rc.lua.multicolor b/rc.lua.multicolor index 909853c..22b3ac8 100644 --- a/rc.lua.multicolor +++ b/rc.lua.multicolor @@ -29,29 +29,8 @@ beautiful.init(os.getenv("HOME") .. "/.config/awesome/themes/multicolor/theme.lu -- variables require("settings.variables") -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, -} --- }}} - --- {{{ Tags -tags = { - names = { "web", "term", "docs", "media", "files", "other" }, - layout = { layouts[1], layouts[3], layouts[4], layouts[1], layouts[7], layouts[1] } -} -for s = 1, screen.count() do --- Each screen has its own tag table. - tags[s] = awful.tag(tags.names, s, tags.layout) -end +-- Tags and layouts +require("settings.tags") -- }}} -- {{{ Wallpaper diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index b35fdb2..2ee55b6 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -32,24 +32,8 @@ require("settings.variables") iptraf = terminal .. " -g 180x54-20+34 -e sudo iptraf-ng -i all " musicplr = terminal .. " -g 130x34-320+16 -e ncmpcpp " -layouts = { - awful.layout.suit.floating, - awful.layout.suit.tile, - awful.layout.suit.tile.bottom, - awful.layout.suit.fair, - awful.layout.suit.fair.horizontal, -} --- }}} - --- {{{ Tags -tags = { - names = { "1", "2", "3", "4", "5"}, - layout = { layouts[1], layouts[2], layouts[3], layouts[1], layouts[4] } -} - -for s = 1, screen.count() do - tags[s] = awful.tag(tags.names, s, tags.layout) -end +-- Tags and layouts +require("settings.tags") -- }}} -- {{{ Wallpaper diff --git a/rc.lua.rainbow b/rc.lua.rainbow index 1c04243..9749f21 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -33,26 +33,8 @@ require("settings.variables") lain.layout.termfair.nmaster = 3 lain.layout.termfair.ncol = 1 -layouts = { - awful.layout.suit.floating, - awful.layout.suit.fair, - awful.layout.suit.tile, - lain.layout.uselessfair.horizontal, - lain.layout.uselesstile, - lain.layout.uselessfair, - lain.layout.termfair, - lain.layout.uselesspiral.dwindle -} --- }}} - --- {{{ Tags -tags = { - names = { "www", "dev", "docs", "media" }, - layout = { layouts[1], layouts[2], layouts[3], layouts[4] } -} -for s = 1, screen.count() do - tags[s] = awful.tag(tags.names, s, tags.layout) -end +-- Tags and layouts +require("settings.tags") -- }}} -- {{{ Wallpaper diff --git a/rc.lua.steamburn b/rc.lua.steamburn index f158066..00bdb00 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -33,24 +33,8 @@ require("settings.variables") lain.layout.termfair.nmaster = 3 lain.layout.termfair.ncol = 1 -layouts = { - awful.layout.suit.floating, - lain.layout.uselessfair.horizontal, - lain.layout.uselesstile, - lain.layout.uselessfair, - lain.layout.termfair, - lain.layout.uselesspiral.dwindle -} --- }}} - --- {{{ Tags -tags = { - names = { "web", "term", "docs", "media", "down"}, - layout = { layouts[1], layouts[3], layouts[4], layouts[1], layouts[6] } -} -for s = 1, screen.count() do - tags[s] = awful.tag(tags.names, s, tags.layout) -end +-- Tags and layouts +require("settings.tags") -- }}} -- {{{ Wallpaper diff --git a/settings/tags.lua b/settings/tags.lua new file mode 100644 index 0000000..898c07a --- /dev/null +++ b/settings/tags.lua @@ -0,0 +1,36 @@ +local awful = require("awful") + +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 +} + + +tags = { + names = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }, + layout = { + layouts[1], + layouts[1], + layouts[1], + layouts[1], + layouts[1], + layouts[1], + layouts[1], + layouts[1], + layouts[1], + } +} + +for s = 1, screen.count() do + tags[s] = awful.tag(tags.names, s, tags.layout) +end