swaynag(5)
π swaynag(5) β like, the whole manual, bestie π
Okay so this is a page from the File Formats Manual β it's swaynag(5), the config file page, and it's genuinely so much easier than it looks. Grab a snack, we're doing this. π
β¨ NAME β¨
swaynag β the swaynag configuration file, aka the glow-up file for your nag bar. periodt.
πΈ SYNOPSIS πΈ
Here's where swaynag goes looking for its config, in these exact spots:
$HOME/.swaynag/config
$XDG_CONFIG_HOME/swaynag/config
SYSCONFDIR/swaynag/config
π CONFIG FILE π
the top bit: defaults, bestie
At the very top of the config file you can set swaynag options using this format, like, exactly:
long-option=value
These become the default values if swaynag isn't given the option on the command line. Which is lowkey iconic for setting your preferred font, output, and edge so you don't have to type them every single time. π«Ά
the bottom bit: custom types β¨
Below the options, you can define custom types. To define one, use this format:
[name-of-type]
option=value
π¨ colors (the fun part)
All colors can be given in the form RRGGBB or RRGGBBAA. (Yes, the extra AA is alpha β she's got range.) The colors you can set are:
background=<color>β the background color for swaynag.border=<color>β the color used for the borders of buttons.border-bottom=<color>β the color of the border line at the bottom of swaynag.button-background=<color>β the background color for the buttons.text=<color>β the color of the text.button-text=<color>β the color of the button text.
π sizing options (measurements, but make it cute)
These sizing options can also be set:
border-bottom-size=<size>β sets the thickness of the bottom border.message-padding=<padding>β sets the padding for the message.details-background=<color>β the background color for the details. (Yes bestie, this one lives in the sizing section but she's a color. The manpage said so, we don't argue. π )details-border-size=<size>β sets the thickness for the details border.button-border-size=<size>β sets the thickness for the button border.button-gap=<gap>β sets the size of the gap between buttons.button-dismiss-gap=<gap>β sets the size of the gap between the dismiss button and another button.button-margin-right=<margin>β sets the margin from the right of the dismiss button to the edge.button-padding=<padding>β sets the padding for the button text.
π per-type defaults
Additionally β yes, additionally β the following options can each be assigned a default per-type:
edge=top|bottomβ sets the edge to use.layer=overlay|top|bottom|backgroundβ sets the layer to use.font=<font>β sets the font to use.output=<output>β sets the output to use. This should be the name of axdg_output.
π¦ EXAMPLE π¦
Here's the example straight from the page, no notes, she ate:
font=Monospace 12
edge=bottom
[green]
edge=top
background=00AA00
border=006600
border-bottom=004400
text=FFFFFF
button-background=00CC00
message-padding=10
Look at that green type go. π
π SEE π
swaynag(1)β go read her sibling, bestie, iykyk.
okay that's literally the whole thing, no cap. copy the values exactly, keep theRRGGBB/RRGGBBAAformat, and your nag bar is gonna be main character energy. π β¨
mwah π β this page is from the File Formats Manual, dated 2026-04-26, and it's swaynag(5) in all her glory. see u in the next one, bestie π
π¦ where this page comes from
- alpine 3.24: sway-doc 1.12_rc3-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms