Added Deco Module

This commit is contained in:
Noella
2024-03-04 22:32:18 -07:00
parent 9410017416
commit 5babd2e2bc
9 changed files with 216 additions and 51 deletions

41
deco/statusbar.lua Normal file
View File

@@ -0,0 +1,41 @@
local gears = require("gears")
local awful = require("awful")
local wibox = require("wibox")
local wallpaper = require("deco.wallpaper")
local taglist = require("deco.taglist")
local tasklist = require("deco.tasklist")
local layoutbox = require("deco.layoutbox")
awful.screen.connect_for_each_screen(function(s)
wallpaper(s)
-- Create a promptbox for each screen
s.promptbox = awful.widget.prompt()
s.layoutbox = layoutbox(s)
s.taglist = taglist(s)
s.tasklist = tasklist(s)
-- Create the wibox
s.wibox = awful.wibar({ position = "bottom", screen = s })
-- Add widgets to the wibox
s.wibox:setup({
layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
s.taglist,
s.promptbox,
},
s.tasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
wibox.widget.systray(),
mytextclock,
s.layoutbox,
},
})
end)