Add waybar-styles(5) manual page
waybar(5) describes the configuration syntax but doesn't mention how the stylesheets are handled. This documentation would have been helpful to me as i figured out how to configure waybar.
This commit is contained in:
parent
ddc767cd81
commit
3d15b96429
|
@ -0,0 +1,34 @@
|
||||||
|
waybar-styles(5)
|
||||||
|
|
||||||
|
# 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*
|
||||||
|
- *@sysconfdir@/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;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
# SEE ALSO
|
||||||
|
|
||||||
|
- *waybar(5)*
|
|
@ -19,6 +19,8 @@ Valid locations for this file are:
|
||||||
A good starting point is the default configuration found at https://github.com/Alexays/Waybar/blob/master/resources/config.jsonc
|
A good starting point is the default configuration found at https://github.com/Alexays/Waybar/blob/master/resources/config.jsonc
|
||||||
Also, a minimal example configuration can be found at the bottom of this man page.
|
Also, a minimal example configuration can be found at the bottom of this man page.
|
||||||
|
|
||||||
|
The visual display elements for waybar use a CSS stylesheet, see *waybar-styles(5)* for details.
|
||||||
|
|
||||||
# BAR CONFIGURATION
|
# BAR CONFIGURATION
|
||||||
|
|
||||||
*layer* ++
|
*layer* ++
|
||||||
|
@ -347,3 +349,4 @@ A group may hide all but one element, showing them only on mouse hover. In order
|
||||||
# SEE ALSO
|
# SEE ALSO
|
||||||
|
|
||||||
*sway-output(5)*
|
*sway-output(5)*
|
||||||
|
*waybar-styles(5)"
|
||||||
|
|
|
@ -539,6 +539,14 @@ if scdoc.found()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
man_files += configure_file(
|
||||||
|
input: 'man/waybar-styles.5.scd.in',
|
||||||
|
output: 'waybar-styles.5.scd',
|
||||||
|
configuration: {
|
||||||
|
'sysconfdir': prefix / sysconfdir
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
fs = import('fs')
|
fs = import('fs')
|
||||||
mandir = get_option('mandir')
|
mandir = get_option('mandir')
|
||||||
foreach file : man_files
|
foreach file : man_files
|
||||||
|
|
Loading…
Reference in New Issue