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 a xdg_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 the RRGGBB/RRGGBBAA format, 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