From 23cdbc8088b5c308a068b432a6b03213ede68f07 Mon Sep 17 00:00:00 2001 From: Aylur Date: Sat, 1 Mar 2025 20:59:09 +0100 Subject: add gtk4 examples --- examples/gtk4/simple-bar/vala/README.md | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 examples/gtk4/simple-bar/vala/README.md (limited to 'examples/gtk4/simple-bar/vala/README.md') diff --git a/examples/gtk4/simple-bar/vala/README.md b/examples/gtk4/simple-bar/vala/README.md new file mode 100644 index 0000000..a1a3eae --- /dev/null +++ b/examples/gtk4/simple-bar/vala/README.md @@ -0,0 +1,44 @@ +# Simple Astal Bar example in Vala + +This example shows you how to get a Vala+Blueprint+Sass project going. + +## Dependencies + +- vala +- meson +- blueprint-compiler +- sass +- astal4 +- astal-battery +- astal-wireplumber +- astak-network +- astal-mpris +- astak-power-profiles +- astal-tray +- astal-bluetooth + +## How to use + +> [!NOTE] +> If you are on Nix, there is an example flake included +> otherwise feel free to `rm flake.nix` + +- developing + + ```sh + meson setup build --wipe --prefix "$pwd/result" + meson install -C build + ./result/bin/simple-bar + ``` + +- installing + + ```sh + meson setup build --wipe --prefix /usr + meson install -C build + simple-bar + ``` + +- adding new vala files will also have to be listed in `meson.build` +- adding new scss files requires no additional steps as long as they are imported from `main.scss` +- adding new ui (blueprint) files will also have to be listed in `meson.build` and in `gresource.xml` -- cgit v1.2.3