From f42a3a2cc941e34dd938b1e6bc24785a44781db2 Mon Sep 17 00:00:00 2001 From: delta Date: Sun, 21 May 2023 10:12:46 +0200 Subject: major update of awesome config add new icons, switch over to using stylesheets instead of gears.color.recolor_image, add a music widget to the panel, optimize services in common.lua, fix the application lense filtering and increase the update rate of services in common.lua Signed-off-by: delta --- .config/awesome/signals/screen.lua | 59 +++++--------------------------------- 1 file changed, 7 insertions(+), 52 deletions(-) (limited to '.config/awesome/signals') diff --git a/.config/awesome/signals/screen.lua b/.config/awesome/signals/screen.lua index ea247a3..706bf56 100644 --- a/.config/awesome/signals/screen.lua +++ b/.config/awesome/signals/screen.lua @@ -1,56 +1,11 @@ local awful = require "awful" +local cfg = require "misc.cfg" +local gtable = require "gears.table" screen.connect_signal("request::desktop_decoration", function(s) - awful.tag.add( - "1", - { - screen = s, - layout = awful.layout.suit.floating, - selected = true - } - ) - - awful.tag.add( - "2", - { - screen = s, - layout = awful.layout.suit.floating, - - } - ) - - awful.tag.add( - "3", - { - screen = s, - layout = awful.layout.suit.tile.left, - master_width_factor = 0.7 - } - ) - - awful.tag.add( - "4", - { - screen = s, - layout = awful.layout.suit.tile.top, - master_width_factor = 0.2 - } - ) - - awful.tag.add( - "5", - { - screen = s, - layout = awful.layout.suit.tile.right, - master_width_factor = 0.7 - } - ) - - awful.tag.add( - "6", - { - screen = s, - layout = awful.layout.suit.floating, - } - ) + for i, tag in ipairs(cfg.tags) do + awful.tag.add(tostring(i), gtable.crush({ + screen = s + }, tag)) + end end) -- cgit v1.2.3