hyprland-wiki/pages/Useful Utilities/Status-Bars.md

51 lines
1.6 KiB
Markdown
Raw Normal View History

2022-08-12 20:46:36 +02:00
Launch your bar with `exec-once=`.
## Waybar
Waybar is a GTK status bar made specifically for wlroots compositors.
2022-08-13 18:25:43 +02:00
To use it, it's recommended to use the AUR package `waybar-hyprland-git`,
2022-08-13 01:47:48 +02:00
or compile manually with the `USE_EXPERIMENTAL` flag enabled.
2022-08-12 20:46:36 +02:00
To compile manually:
2022-08-13 18:25:43 +02:00
Clone the source, cd into it, then do:
2022-08-13 01:47:48 +02:00
2022-08-12 20:46:36 +02:00
```sh
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp
meson --prefix=/usr --buildtype=plain --auto-features=enabled --wrap-mode=nodownload build
meson configure -Dexperimental=true build
```
and finally:
2022-08-13 01:47:48 +02:00
2022-08-12 20:46:36 +02:00
```sh
sudo ninja -C build install
```
If you want to use the workspaces module, it's called `wlr/workspaces`.
2022-08-13 01:47:48 +02:00
For more info regarding configuration, see
2022-08-13 18:25:43 +02:00
[The Waybar Wiki](https://github.com/Alexays/Waybar/wiki).
2022-08-12 20:46:36 +02:00
2022-08-13 18:25:43 +02:00
## Eww
2022-08-12 20:46:36 +02:00
2022-08-13 18:25:43 +02:00
In order to use [Eww](https://github.com/elkowar/eww), you first have to install
2022-08-13 01:47:48 +02:00
it, either using your distro's package manager, by searching `eww-wayland`, or
2022-08-13 18:25:43 +02:00
by manually compiling. In the latter case, you can follow the
[instructions](https://elkowar.github.io/eww).
2022-08-12 20:46:36 +02:00
### Configuration
2022-08-13 18:25:43 +02:00
After you've successfully installed Eww, you can move onto configuring it. There
are a few examples listed in the [Readme](https://github.com/elkowar/eww). We
highly recommend you also read through the
2022-08-12 20:46:36 +02:00
[Configuration options](https://elkowar.github.io/eww/configuration.html).
2022-08-13 18:25:43 +02:00
{{< hint type=important >}}
Read
[the Wayland section](https://elkowar.github.io/eww/configuration.html#wayland)
2022-08-13 01:47:48 +02:00
carefully before asking why your bar doesn't work.
2022-08-13 18:25:43 +02:00
{{< /hint >}}