Skip to content
Kevin Kamper Meejach Petersen edited this page Feb 9, 2021 · 27 revisions

How do I add multiple instances of a module?

Have a look here: Multiple instances of a module

The Workspace-Buttons have a strange hover effect

It's not a bug, the original issue #60.

But if you don't like the effect you can disable it by adding the following snippet to your style.css:

#workspaces button:hover {
  box-shadow: inherit;
  text-shadow: inherit;
}

Additionally, to remove all hover effects from workspaces, add the following in addition to the above:

#workspaces button:hover {
    background: <original-color>;
    border: <original-color>;
    padding: 0 3px;
}

How can I generate a debug build?

A debug build can be helpfull when fixing bugs, because it generates a backtrace with debugging symbols.

This can be done with:

make build-debug

The icons from the default configuration aren't rendered

You need to install otf-font-awesome. See here on how to install the Font Awesome OTF package.

How do I display text?

Create a Custom module with the format field specified with your text.

How can I prevent modules from changing size?

First make sure to set a monospace font:

* {
    font-family: monospace;
}

Then change the module format so that it stays at a fixed width. Waybar uses fmt for formatting so the following syntax is an example of how to set the CPU percentage to be at least 2 characters wide:

"format": "{usage:2}%"

How to use with Sway?

You can use Waybar by defining in your Sway config file:

bar {
    swaybar_command waybar
}

or at the end of your sway config file

exec waybar

How can I temporarily hide the bars?

You can toggle the visibility of the bars with:

killall -SIGUSR1 waybar

How can I reload the configuration without restarting waybar?

Only works on waybar after version v0.9.5

killall -SIGUSR2 waybar
Clone this wiki locally