🔧 - This commit adds example configurations for several features and widgets, including app launcher, status bar, bluetooth widget, desktop widget, icon browser, notifications, and side panel.
This commit is contained in:
14 files changed
+1596
-12
No files matched your search
@@ -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()
|
||||
Reference in new issue
Block a user