26 lines
848 B
Python
26 lines
848 B
Python
from ignis.widgets import Widget
|
|
from .widgets import StatusPill, Tray, KeyboardLayout, Battery, Apps, Workspaces
|
|
|
|
|
|
class Bar(Widget.Window):
|
|
__gtype_name__ = "Bar"
|
|
|
|
def __init__(self, monitor: int):
|
|
super().__init__(
|
|
anchor=["left", "top", "right"],
|
|
exclusivity="exclusive",
|
|
monitor=monitor,
|
|
namespace=f"ignis_BAR_{monitor}",
|
|
layer="top",
|
|
kb_mode="none",
|
|
child=Widget.CenterBox(
|
|
css_classes=["bar-widget"],
|
|
start_widget=Widget.Box(child=[Workspaces()]),
|
|
center_widget=Widget.Box(child=[Apps()]),
|
|
end_widget=Widget.Box(
|
|
child=[Tray(), KeyboardLayout(), Battery(), StatusPill(monitor)]
|
|
),
|
|
),
|
|
css_classes=["unset"],
|
|
)
|