From bcc7c827ab88bc4806aac1f9468711eef32abd8e Mon Sep 17 00:00:00 2001 From: Able Date: Thu, 5 Dec 2024 11:04:28 -0600 Subject: [PATCH] omnibar change & conceptualization. --- sysdata/programs/sunset_server/README.md | 9 +++++++++ sysdata/programs/sunset_server/meta.toml | 2 +- sysdata/programs/sunset_server/omnibar.uil | 5 +++++ sysdata/programs/sunset_server/src/main.hb | 4 +++- 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 sysdata/programs/sunset_server/README.md create mode 100644 sysdata/programs/sunset_server/omnibar.uil diff --git a/sysdata/programs/sunset_server/README.md b/sysdata/programs/sunset_server/README.md new file mode 100644 index 0000000..d30aa9a --- /dev/null +++ b/sysdata/programs/sunset_server/README.md @@ -0,0 +1,9 @@ +# Sunset Server + +## Omnibar +The omnibar is a clone of the polybar concept and will be configured via lisp. + + +probably should be spawned in as a window with special permission to not draw window decorators + +not drawing decorators could also function as a full screen of sorts if it resizes \ No newline at end of file diff --git a/sysdata/programs/sunset_server/meta.toml b/sysdata/programs/sunset_server/meta.toml index 84c7d22..082e9ab 100644 --- a/sysdata/programs/sunset_server/meta.toml +++ b/sysdata/programs/sunset_server/meta.toml @@ -1,6 +1,6 @@ [package] name = "sunset_server" -authors = ["koniifer"] +authors = ["able", "koniifer"] [dependants.libraries] diff --git a/sysdata/programs/sunset_server/omnibar.uil b/sysdata/programs/sunset_server/omnibar.uil new file mode 100644 index 0000000..3c0cceb --- /dev/null +++ b/sysdata/programs/sunset_server/omnibar.uil @@ -0,0 +1,5 @@ +(meta height:(+ font_height 1)) + +(horizontal + (label last_pressed_key) + (seperator percent:10)) \ No newline at end of file diff --git a/sysdata/programs/sunset_server/src/main.hb b/sysdata/programs/sunset_server/src/main.hb index 06a52e7..68ba597 100644 --- a/sysdata/programs/sunset_server/src/main.hb +++ b/sysdata/programs/sunset_server/src/main.hb @@ -83,7 +83,9 @@ main := fn(): int { } { - pos := Vec2(uint).(1, screen.height - 21) + /* Omnibar */ + omnibar_height := 21 + pos := Vec2(uint).(1, screen.height - omnibar_height) render_label_to_surface(screen, text_label, font, pos) render.put_rect(screen, .(0, screen.height - 21), .(screen.width - 1, 20), sunset.server.DECO_COLOUR) }