add new widgets; rewrite workspace indicator

This commit is contained in:
gnat
2024-11-17 16:27:41 -08:00
parent 784e71e643
commit d584d25194
5 changed files with 125 additions and 10 deletions

View File

@ -1,9 +1,38 @@
local workspaces <const> = require(... .. '.workspaces')
local clock <const> = require(... .. '.clock')
local battery <const> = require(... .. '.battery')
local volume <const> = require(... .. '.volume')
local brightness <const> = require(... .. '.brightness')
return Astal.Window({
namespace = "bar",
name = "bar",
anchor = Astal.WindowAnchor.TOP + Astal.WindowAnchor.LEFT + Astal.WindowAnchor.RIGHT,
exclusivity = "EXCLUSIVE",
child = workspaces,
child = Widget.CenterBox({
start_widget = Widget.Box({
class_name = 'left',
children = {
workspaces,
}
}),
center_widget = Widget.Box({}),
end_widget = Widget.Box({
class_name = 'right',
halign = 'END',
children = {
Widget.Box({
class_name = 'sliders',
vertical = true,
children = {
volume,
brightness
}
}),
battery,
Gtk.Separator({}),
clock
}
}),
})
})