| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | swaynag(1) | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # NAME | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-27 11:19:42 -04:00
										 |  |  | swaynag - Show a warning or error message with buttons | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # SYNOPSIS | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-27 11:19:42 -04:00
										 |  |  | _swaynag_ [options...] | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # OPTIONS | 
					
						
							| 
									
										
										
										
											2018-07-30 15:17:51 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | *-b, --button* <text> <action> | 
					
						
							|  |  |  | 	Create a button with the text _text_ that executes _action_ when pressed. | 
					
						
							| 
									
										
										
										
											2019-08-31 14:46:51 +02:00
										 |  |  | 	If the environment variable _TERMINAL_ is set, _action_ will be run inside | 
					
						
							| 
									
										
										
										
											2018-11-27 23:27:44 -05:00
										 |  |  | 	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> | 
					
						
							|  |  |  | 	Create a button with the text _text_ that executes _action_ when pressed. | 
					
						
							|  |  |  | 	_action_ will be run directly instead of in a terminal. Multiple buttons | 
					
						
							|  |  |  | 	can be defined by providing the flag multiple times. | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-07 10:47:56 -04:00
										 |  |  | *-z, --button-dismiss* <text> <action> | 
					
						
							|  |  |  | 	Create a button with the text _text_ that executes _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> | 
					
						
							|  |  |  | 	Create a button with the text _text_ that executes _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. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | *-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. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | *-d, --debug* | 
					
						
							|  |  |  | 	Enable debugging. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | *-e, --edge* top|bottom | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | 	Set the edge to use. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-17 15:55:21 +00:00
										 |  |  | *-y, --layer* overlay|top|bottom|background | 
					
						
							|  |  |  | 	Set the layer to use. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | *-f, --font* <font> | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | 	Set the font to use. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *-h, --help* | 
					
						
							|  |  |  | 	Show help message and quit. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-27 11:19:42 -04:00
										 |  |  | *-l, --detailed-message* | 
					
						
							|  |  |  | 	Read a detailed message from stdin. A button to toggle details will be | 
					
						
							|  |  |  | 	added. Details are shown in a scrollable multi-line text area. | 
					
						
							| 
									
										
										
										
											2018-07-27 01:30:35 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | *-L, --detailed-button* <text> | 
					
						
							| 
									
										
										
										
											2018-07-27 01:30:35 -04:00
										 |  |  | 	Set the text for the button that toggles details. This has no effect if | 
					
						
							| 
									
										
										
										
											2018-10-07 14:37:21 -04:00
										 |  |  | 	there is not a detailed message. The default is _Toggle details_. | 
					
						
							| 
									
										
										
										
											2018-07-27 01:30:35 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | *-m, --message* <msg> | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | 	Set the message text. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | *-o, --output* <output> | 
					
						
							| 
									
										
										
										
											2018-07-29 22:42:03 -04:00
										 |  |  | 	Set the output to use. This should be the name of a _xdg\_output_. | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | *-s, --dismiss-button* <text> | 
					
						
							| 
									
										
										
										
											2018-07-27 01:30:35 -04:00
										 |  |  | 	Sets the text for the dismiss nagbar button. The default is _X_. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-29 22:42:03 -04:00
										 |  |  | *-t, --type* <type> | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | 	Set 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. | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | *-v, --version* | 
					
						
							| 
									
										
										
										
											2018-07-25 21:57:19 -04:00
										 |  |  | 	Show the version number and quit. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-29 22:42:03 -04:00
										 |  |  | # APPEARANCE OPTIONS | 
					
						
							| 
									
										
										
										
											2018-07-30 15:17:51 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-29 22:42:03 -04:00
										 |  |  | *--background* <RRGGBB[AA]> | 
					
						
							|  |  |  | 	Set the color of the background. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *--border* <RRGGBB[AA]> | 
					
						
							|  |  |  | 	Set the color of the border. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *--border-bottom* <RRGGBB[AA]> | 
					
						
							|  |  |  | 	Set the color of the bottom border. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *--button-background* <RRGGBB[AA]> | 
					
						
							|  |  |  | 	Set the color for the background for buttons. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *--text* <RRGGBB[AA]> | 
					
						
							|  |  |  | 	Set the text color. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-02 15:03:48 +02:00
										 |  |  | *--button-text* <RRGGBB[AA]> | 
					
						
							|  |  |  | 	Set the button text color. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-29 22:42:03 -04:00
										 |  |  | *--border-bottom-size* <size> | 
					
						
							|  |  |  | 	Set the thickness of the bottom border. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *--message-padding* <padding> | 
					
						
							|  |  |  | 	Set the padding for the message. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-08 21:43:35 -05:00
										 |  |  | *--details-background* <RRGGBB[AA]> | 
					
						
							|  |  |  | 	Set the color for the background for details. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-29 22:42:03 -04:00
										 |  |  | *--details-border-size* <size> | 
					
						
							|  |  |  | 	Set the thickness for the details border. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *--button-border-size* <size> | 
					
						
							|  |  |  | 	Set the thickness for the button border. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *--button-gap* <gap> | 
					
						
							|  |  |  | 	Set the size of the gap between buttons. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *--button-dismiss-gap* <gap> | 
					
						
							|  |  |  | 	Set the size of the gap between the dismiss button and another button. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *--button-margin-right* <margin> | 
					
						
							|  |  |  | 	Set the margin from the right of the dismiss button to edge. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | *--button-padding* <padding> | 
					
						
							|  |  |  | 	Set the padding for the button text. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | # SEE | 
					
						
							| 
									
										
										
										
											2018-07-30 15:17:51 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-28 09:34:25 -04:00
										 |  |  | swaynag(5) |