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 texttextthat runsactionwhen you press it. If the environment variableTERMINALis set,actionwill 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 texttextthat runsactionwhen pressed, butactionwill 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 texttextthat runsactionwhen pressed, and dismissesswaynag. If the environment variableTERMINALis set,actionwill 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 texttextthat runsactionwhen pressed, and dismissesswaynag.actionwill 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, andSYSCONFDIR/swaynag/config. All flags aside from this one anddebugare valid options in the configuration file using the formatlong-option=value. All leading dashes should be omitted and the equals sign is required. Seeswaynag(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 isToggle details. π-m,--message <msg>β sets the message text. π¬-o,--output <output>β sets the output to use. This should be the name of axdg_output. π₯οΈ-s,--dismiss-button <text>β sets the text for the dismiss nagbar button. The default isX. β-t,--type <type>β sets the message type. Two types are created by default:errorandwarning. Custom types can be defined in the config file. See--configandswaynag(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 π¦
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
- 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