🔧 - 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()
|
||||
@@ -0,0 +1,38 @@
|
||||
:vars {
|
||||
--background: #150d16;
|
||||
--foreground: #f5dbc4;
|
||||
--color0: #150d16;
|
||||
--color1: #72448D;
|
||||
--color2: #9C5995;
|
||||
--color3: #D5719F;
|
||||
--color4: #9A62F3;
|
||||
--color5: #E075DF;
|
||||
--color6: #F98F9F;
|
||||
--color7: #f5dbc4;
|
||||
--color8: #ab9989;
|
||||
--color9: #72448D;
|
||||
--color10: #9C5995;
|
||||
--color11: #D5719F;
|
||||
--color12: #9A62F3;
|
||||
--color13: #E075DF;
|
||||
--color14: #F98F9F;
|
||||
--color15: #f5dbc4;
|
||||
}
|
||||
|
||||
* {
|
||||
all: unset;
|
||||
transition: color 0.5s ease;
|
||||
color: alpha(var(--foreground), 0.8);
|
||||
font-family: "Jost*", sans-serif;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
#clock>label {
|
||||
font-size: 86px;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
#date>label {
|
||||
font-size: 24px;
|
||||
margin-bottom: -18px;
|
||||
}
|
||||
Reference in new issue
Block a user