]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/topbar.lua
lazyvim: absorb blink config
[dotfiles.git] / awesome / topbar.lua
index 6f97887408b9ae6f858421d7d8c3bda7606423db..f48715bd393626143de2f48fb0bebe63520e2d88 100644 (file)
@@ -79,7 +79,30 @@ awful.screen.connect_for_each_screen(function(s)
                            awful.button({ }, 4, function () awful.layout.inc( 1) end),
                            awful.button({ }, 5, function () awful.layout.inc(-1) end)))
     -- Create a taglist widget
-    s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, taglist_buttons)
+    local theme = beautiful.get()
+    s.mytaglist = awful.widget.taglist{
+        screen  = s,
+        filter  = awful.widget.taglist.filter.all,
+        buttons = taglist_buttons,
+        style   = {
+            squares_resize = false
+        },
+        widget_template = {
+            {
+                {
+                    {
+                        id     = 'icon_role',
+                        widget = wibox.widget.imagebox,
+                    },
+                    layout = wibox.layout.fixed.horizontal,
+                },
+                forced_width = theme.wibar_height,
+                widget       = wibox.container.place,
+            },
+            id     = 'background_role',
+            widget = wibox.container.background,
+        },
+    }
 
     -- Create a tasklist widget
     s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, tasklist_buttons)