Man page - waybar-styles(5)
Packages contains this manual
- waybar-backlight-slider(5)
- waybar-river-layout(5)
- waybar-sway-scratchpad(5)
- waybar-pulseaudio-slider(5)
- waybar-hyprland-submap(5)
- waybar-river-mode(5)
- waybar-keyboard-state(5)
- waybar-cffi(5)
- waybar-pulseaudio(5)
- waybar-states(5)
- waybar-clock(5)
- waybar(5)
- waybar-dwl-tags(5)
- waybar-niri-window(5)
- waybar-niri-workspaces(5)
- waybar-dwl-window(5)
- waybar-sndio(5)
- waybar-niri-language(5)
- waybar-hyprland-language(5)
- waybar-wireplumber(5)
- waybar-mpris(5)
- waybar-gamemode(5)
- waybar-sway-language(5)
- waybar-hyprland-workspaces(5)
- waybar-power-profiles-daemon(5)
- waybar-battery(5)
- waybar-wlr-taskbar(5)
- waybar-tray(5)
- waybar-menu(5)
- waybar-sway-workspaces(5)
- waybar-styles(5)
- waybar-sway-mode(5)
- waybar-cpu(5)
- waybar-river-window(5)
- waybar-mpd(5)
- waybar-hyprland-window(5)
- waybar-sway-window(5)
- waybar-network(5)
- waybar-systemd-failed-units(5)
- waybar-jack(5)
- waybar-temperature(5)
- waybar-river-tags(5)
- waybar-custom(5)
- waybar-idle-inhibitor(5)
- waybar-bluetooth(5)
- waybar-privacy(5)
- waybar-backlight(5)
- waybar-inhibitor(5)
- waybar-image(5)
- waybar-upower(5)
- waybar-disk(5)
- waybar-memory(5)
apt-get install waybar
Manual
waybar-styles
NAMEDESCRIPTION
EXAMPLE
Hover-effect
Setting cursor style
SEE ALSO
NAME
waybar-styles - using stylesheets for waybar
DESCRIPTION
Waybar uses Cascading Style Sheets (CSS) to configure its appearance.
It uses the first file found in this search order:
|
• |
$XDG_CONFIG_HOME/waybar/style.css |
|||
|
• |
˜/.config/waybar/style.css |
|||
|
• |
˜/waybar/style.css |
|||
|
• |
/etc/xdg/waybar/style.css |
|||
|
• |
/etc/xdg/waybar/style.css |
EXAMPLE
An example user-controlled stylesheet that just changes the color of the clock to be green on black, while keeping the rest of the system config the same would be:
@import url("file:///etc/xdg/waybar/style.css")
#clock {
background: #000000;
color: #00ff00;
}
Hover-effect
You can apply special styling to any module for when the cursor hovers it.
#clock:hover {
background-color: #ffffff;
}
Setting cursor style
Most, if not all, module types support setting the ‘cursor‘ option. This is configured in your ‘config.jsonc‘. If set to ‘false‘, when hovering the module a "pointer"(as commonly known from web CSS styling ‘cursor: pointer‘) style cursor will not be shown. Default behavior is to indicate an interaction event is available.
There are more cursor types to choose from by setting the ‘cursor‘ option to a number, see Gdk3 official docs for all possible cursor types: https://docs.gtk.org/gdk3/enum.CursorType.html. However, note that not all cursor options listed may be available on your system. If you attempt to use a cursor which is not available, the application will crash.
Example of disabling pointer(‘Gdk::Hand2‘) cursor type on a custom module:
"custom/my-custom-module":
{
...
"cursor": false,
}
Example of setting cursor type to ‘Gdk::Boat‘(according to https://docs.gtk.org/gdk3/enum.CursorType.html#boat):
"custom/my-custom-module":
{
...
"cursor": 8,
}
SEE ALSO
|
• |
waybar(5) |