diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..298eb4d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +@girs/ diff --git a/style.scss b/style.scss index 2cc2a19..3d962e0 100644 --- a/style.scss +++ b/style.scss @@ -11,6 +11,13 @@ window.Bar { background: $bg-color; border-radius: 10px; margin: 8px; + padding: 4px 12px; + } + + .left-box, + .center-box, + .right-box { + padding: 0 8px; } button { diff --git a/widget/Bar.tsx b/widget/Bar.tsx index 56aa86a..d887d8b 100644 --- a/widget/Bar.tsx +++ b/widget/Bar.tsx @@ -1,16 +1,37 @@ import app from "ags/gtk4/app" import { Astal, Gtk, Gdk } from "ags/gtk4" -import { execAsync } from "ags/process" -import { createPoll } from "ags/time" + +function Left() { + return ( + + + ) +} + +function Center() { + return ( + + + ) +} + +function Right() { + return ( + + + ) +} export default function Bar(gdkmonitor: Gdk.Monitor) { - const time = createPoll("", 1000, "date") const { TOP, LEFT, RIGHT } = Astal.WindowAnchor return ( - - - - + +
+ )