.\" Generated by scdoc 1.11.3 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "swaynag" "1" "2024-10-28" .PP .SH NAME .PP swaynag - Show a warning or error message with buttons .PP .SH SYNOPSIS .PP \fIswaynag\fR [options.\&.\&.\&] .PP .SH OPTIONS .PP \fB-b, --button\fR .RS 4 Create a button with the text \fItext\fR that executes \fIaction\fR when pressed.\& If the environment variable \fITERMINAL\fR is set, \fIaction\fR will be run inside the terminal.\& Otherwise, it will fallback to running directly.\& Multiple buttons can be defined by providing the flag multiple times.\& .PP .RE \fB-B, --button-no-terminal\fR .RS 4 Create a button with the text \fItext\fR that executes \fIaction\fR when pressed.\& \fIaction\fR will be run directly instead of in a terminal.\& Multiple buttons can be defined by providing the flag multiple times.\& .PP .RE \fB-z, --button-dismiss\fR .RS 4 Create a button with the text \fItext\fR that executes \fIaction\fR when pressed, and dismisses swaynag.\& If the environment variable \fITERMINAL\fR is set, \fIaction\fR will be run inside the terminal.\& Otherwise, it will fallback to running directly.\& Multiple buttons can be defined by providing the flag multiple times.\& .PP .RE \fB-Z, --button-dismiss-no-terminal\fR .RS 4 Create a button with the text \fItext\fR that executes \fIaction\fR when pressed, and dismisses swaynag.\& \fIaction\fR will be run directly instead of in a terminal.\& Multiple buttons can be defined by providing the flag multiple times.\& .PP .RE \fB-c, --config\fR .RS 4 The config file to use.\& By default, the following paths are checked: \fI$HOME/.\&swaynag/config\fR, \fI$XDG_CONFIG_HOME/swaynag/config\fR, and \fISYSCONFDIR/swaynag/config\fR.\& All flags aside from this one and \fIdebug\fR are valid options in the configuration file using the format \fIlong-option=value\fR.\& All leading dashes should be omitted and the equals sign is required.\& See swaynag(5) for more information.\& .PP .RE \fB-d, --debug\fR .RS 4 Enable debugging.\& .PP .RE \fB-e, --edge\fR top|bottom .RS 4 Set the edge to use.\& .PP .RE \fB-y, --layer\fR overlay|top|bottom|background .RS 4 Set the layer to use.\& .PP .RE \fB-f, --font\fR .RS 4 Set the font to use.\& .PP .RE \fB-h, --help\fR .RS 4 Show help message and quit.\& .PP .RE \fB-l, --detailed-message\fR .RS 4 Read a detailed message from stdin.\& A button to toggle details will be added.\& Details are shown in a scrollable multi-line text area.\& .PP .RE \fB-L, --detailed-button\fR .RS 4 Set the text for the button that toggles details.\& This has no effect if there is not a detailed message.\& The default is \fIToggle details\fR.\& .PP .RE \fB-m, --message\fR .RS 4 Set the message text.\& .PP .RE \fB-o, --output\fR .RS 4 Set the output to use.\& This should be the name of a \fIxdg_output\fR.\& .PP .RE \fB-s, --dismiss-button\fR .RS 4 Sets the text for the dismiss nagbar button.\& The default is \fIX\fR.\& .PP .RE \fB-t, --type\fR .RS 4 Set the message type.\& Two types are created by default \fIerror\fR and \fIwarning\fR.\& Custom types can be defined in the config file.\& See \fI--config\fR and swaynag(5) for details.\& Both of the default types can be overridden in the config file as well.\& .PP .RE \fB-v, --version\fR .RS 4 Show the version number and quit.\& .PP .RE .SH APPEARANCE OPTIONS .PP \fB--background\fR .RS 4 Set the color of the background.\& .PP .RE \fB--border\fR .RS 4 Set the color of the border.\& .PP .RE \fB--border-bottom\fR .RS 4 Set the color of the bottom border.\& .PP .RE \fB--button-background\fR .RS 4 Set the color for the background for buttons.\& .PP .RE \fB--text\fR .RS 4 Set the text color.\& .PP .RE \fB--button-text\fR .RS 4 Set the button text color.\& .PP .RE \fB--border-bottom-size\fR .RS 4 Set the thickness of the bottom border.\& .PP .RE \fB--message-padding\fR .RS 4 Set the padding for the message.\& .PP .RE \fB--details-background\fR .RS 4 Set the color for the background for details.\& .PP .RE \fB--details-border-size\fR .RS 4 Set the thickness for the details border.\& .PP .RE \fB--button-border-size\fR .RS 4 Set the thickness for the button border.\& .PP .RE \fB--button-gap\fR .RS 4 Set the size of the gap between buttons.\& .PP .RE \fB--button-dismiss-gap\fR .RS 4 Set the size of the gap between the dismiss button and another button.\& .PP .RE \fB--button-margin-right\fR .RS 4 Set the margin from the right of the dismiss button to edge.\& .PP .RE \fB--button-padding\fR .RS 4 Set the padding for the button text.\& .PP .RE .SH SEE .PP swaynag(5)