2024-10-12 00:46:39 -07:00
|
|
|
local workspaces <const> = require(... .. '.workspaces')
|
2024-11-17 16:27:41 -08:00
|
|
|
local clock <const> = require(... .. '.clock')
|
|
|
|
local battery <const> = require(... .. '.battery')
|
|
|
|
local volume <const> = require(... .. '.volume')
|
2024-11-20 02:19:18 -08:00
|
|
|
local mpris <const> = require(... .. '.mpris')
|
|
|
|
-- local brightness <const> = require(... .. '.brightness')
|
2024-10-12 00:46:39 -07:00
|
|
|
|
|
|
|
return Astal.Window({
|
|
|
|
namespace = "bar",
|
|
|
|
name = "bar",
|
|
|
|
anchor = Astal.WindowAnchor.TOP + Astal.WindowAnchor.LEFT + Astal.WindowAnchor.RIGHT,
|
|
|
|
exclusivity = "EXCLUSIVE",
|
2024-11-17 16:27:41 -08:00
|
|
|
child = Widget.CenterBox({
|
|
|
|
start_widget = Widget.Box({
|
|
|
|
class_name = 'left',
|
|
|
|
children = {
|
|
|
|
workspaces,
|
2024-11-20 02:19:18 -08:00
|
|
|
mpris,
|
2024-11-17 16:27:41 -08:00
|
|
|
}
|
|
|
|
}),
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
})
|
2024-10-12 00:46:39 -07:00
|
|
|
})
|