swaynag(1)

🌸 NAME 🌸

okay so, bestie, welcome to swaynag(1) β€” the manual page for literally showing a warning or error message with buttons. That's the whole vibe. slay. πŸ’…


✨ SYNOPSIS ✨

swaynag [options...]

no cap, that's the whole invocation. πŸ¦‹


πŸ’… OPTIONS πŸ’…

  • -b, --button <text> <action> β€” makes a button with the text text that runs action when you press it. If the environment variable TERMINAL is set, action will be run inside the terminal. Otherwise, it will fallback to running directly. Multiple buttons can be defined by providing the flag multiple times. πŸŽ€
  • -B, --button-no-terminal <text> <action> β€” same button energy with text text that runs action when pressed, but action will be run directly instead of in a terminal. Multiple buttons can be defined by providing the flag multiple times. ✨
  • -z, --button-dismiss <text> <action> β€” makes a button with text text that runs action when pressed, and dismisses swaynag. If the environment variable TERMINAL is set, action will be run inside the terminal. Otherwise, it will fallback to running directly. Multiple buttons can be defined by providing the flag multiple times. πŸ’–
  • -Z, --button-dismiss-no-terminal <text> <action> β€” makes a button with text text that runs action when pressed, and dismisses swaynag. action will be run directly instead of in a terminal. Multiple buttons can be defined by providing the flag multiple times. 🫢
  • -c, --config <path> β€” the config file to use. By default, the following paths are checked: $HOME/.swaynag/config, $XDG_CONFIG_HOME/swaynag/config, and SYSCONFDIR/swaynag/config. All flags aside from this one and debug are valid options in the configuration file using the format long-option=value. All leading dashes should be omitted and the equals sign is required. See swaynag(5) for more information. πŸ“
  • -d, --debug β€” enables debugging. diagnostic queen behavior. πŸ›
  • -e, --edge top|bottom β€” sets the edge to use. 🌈
  • -y, --layer overlay|top|bottom|background β€” sets the layer to use. 🧚
  • -f, --font <font> β€” sets the font to use. ✨
  • -h, --help β€” shows the help message and quits. πŸ’–
  • -l, --detailed-message β€” reads a detailed message from stdin. A button to toggle details will be added. Details are shown in a scrollable multi-line text area. πŸ“œ
  • -L, --detailed-button <text> β€” sets the text for the button that toggles details. This has no effect if there is not a detailed message. The default is Toggle details. πŸŽ€
  • -m, --message <msg> β€” sets the message text. πŸ’¬
  • -o, --output <output> β€” sets the output to use. This should be the name of a xdg_output. πŸ–₯️
  • -s, --dismiss-button <text> β€” sets the text for the dismiss nagbar button. The default is X. ❌
  • -t, --type <type> β€” sets the message type. Two types are created by default: error and warning. Custom types can be defined in the config file. See --config and swaynag(5) for details. Both of the default types can be overridden in the config file as well. ⚠️
  • -v, --version β€” shows the version number and quits. πŸ‘‘

πŸŽ€ APPEARANCE OPTIONS πŸŽ€

get your visual vibe check on, bestie: πŸ’…

  • --background <RRGGBB[AA]> β€” sets the color of the background. 🌸
  • --border <RRGGBB[AA]> β€” sets the color of the border. πŸŽ€
  • --border-bottom <RRGGBB[AA]> β€” sets the color of the bottom border. 🌈
  • --button-background <RRGGBB[AA]> β€” sets the color for the background for buttons. πŸ’–
  • --text <RRGGBB[AA]> β€” sets the text color. ✨
  • --button-text <RRGGBB[AA]> β€” sets the button text color. πŸ¦‹
  • --border-bottom-size <size> β€” sets the thickness of the bottom border. πŸ“
  • --message-padding <padding> β€” sets the padding for the message. 🫢
  • --details-background <RRGGBB[AA]> β€” sets the color for the background for details. 🌟
  • --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 edge. πŸ“
  • --button-padding <padding> β€” sets the padding for the button text. πŸ’–

πŸ¦‹ SEE πŸ¦‹

swaynag(5)

go read the config bestie, iykyk. 🫢


and that's the tea πŸ’– β€” swaynag(1) from the General Commands Manual, dated 2026-04-26, signing off with maximum sparkle. periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from