✨ feat: add fabric widgets and core framework

This commit is contained in:
sankalp committed 2025-07-30 09:30:42 +05:45
1 parent acec6bdda7
commit 6684033219
102 files changed
+12735 -24

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
from fabric import Application
from fabric.widgets.box import Box
from fabric.widgets.datetime import DateTime
from fabric.widgets.wayland import WaylandWindow as Window
from fabric.utils import get_relative_path
if __name__ == "__main__":
desktop_widget = Window(
layer="bottom",
anchor="center", # FYI: there's no anchor named "center" (anchor of "" is == to "center")
exclusivity="none",
child=Box(
orientation="v",
children=[
DateTime(formatters=["%A. %d %B"], interval=10000, name="date"),
DateTime(formatters=["%I:%M"], name="clock"),
],
),
all_visible=True,
)
app = Application("desktop-widget", desktop_widget)
app.set_stylesheet_from_file(get_relative_path("./style.css"))
app.run()