mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-02 03:45:57 +01:00
Status-Bar: Add useful information for Waybar users
* Fix format & characters limits * Fix format for codeblocks etc. * Add infos about scrolling through workspaces and clicking workspace, and why is the usage of 'sed' required before building.
This commit is contained in:
parent
770ff2c79b
commit
b6232efd63
1 changed files with 27 additions and 9 deletions
|
@ -15,32 +15,50 @@ To compile manually:
|
|||
|
||||
Clone the source, cd into it, then do:
|
||||
|
||||
```sh
|
||||
```bash
|
||||
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:
|
||||
|
||||
```sh
|
||||
sudo ninja -C build install
|
||||
```
|
||||
|
||||
If you want to use the workspaces module, it's called `wlr/workspaces`.
|
||||
If you want to use the workspaces module, first, copy the configuration files from
|
||||
`/etc/xdg/waybar/` into `~/.config/waybar/`. Then, in `~/.config/waybar/conf/` replace
|
||||
all the references to `sway/workspaces/` with `wlr/workspaces`.
|
||||
|
||||
For more info regarding configuration, see
|
||||
[The Waybar Wiki](https://github.com/Alexays/Waybar/wiki).
|
||||
|
||||
### Waybar popups render behind the windows
|
||||
|
||||
In `~/waybar/config`, make sure that you have the `layer` configuration set to `top` and not `bottom`.
|
||||
In `~/.config/waybar/config`, make sure that you have the `layer` configuration
|
||||
set to `top` and not `bottom`.
|
||||
|
||||
### Active workspace doesn't show up
|
||||
|
||||
Replace `#workspaces button.focus` with `#wroskapces button.active` in `~/.config/style.css`.
|
||||
|
||||
### Scroll through workspaces
|
||||
|
||||
Since there are a lot of configurations from `sway/workspaces` missing, you
|
||||
should deduce some of them by yourself. In the case of scrolling, configure
|
||||
your module this way:
|
||||
|
||||
```json
|
||||
"wlr/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1"
|
||||
},
|
||||
```
|
||||
|
||||
### Clicking on workspace doesn't work!
|
||||
|
||||
On the `wlr/workspaces` module, add `"on-click": "activate"`. That's the purpose of
|
||||
the `sed` command we had to apply before building: the default way to select a
|
||||
workspace by clicking uses the `swaymsg`'s way, furthermore it is required to edit
|
||||
this function to make it work with `hyprctl`.
|
||||
|
||||
## Eww
|
||||
|
||||
In order to use [Eww](https://github.com/elkowar/eww), you first have to install
|
||||
|
|
Loading…
Reference in a new issue