summaryrefslogtreecommitdiff
path: root/examples/gtk4/simple-bar/py/README.md
blob: 25f296b2c97b57fd096d02bc5163d900507d17dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Simple Astal Bar example in Python

This example shows you how to get a Python+Blueprint+Sass project going.

## Dependencies

- python3
- pygobject
- meson
- blueprint-compiler
- sass
- astal4
- astal-battery
- astal-wireplumber
- astak-network
- astal-mpris
- astak-powerprofiles
- 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 python files requires no additional steps
- 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`