1swaynag(1)                  General Commands Manual                 swaynag(1)
2
3
4

NAME

6       swaynag - Show a warning or error message with buttons
7

SYNOPSIS

9       swaynag [options...]
10

OPTIONS

12       -b, --button <text> <action>
13           Create a button with the text text that executes action when
14           pressed. If the environment variable TERMINAL is set, action will
15           be run inside the terminal. Otherwise, it will fallback to running
16           directly. Multiple buttons can be defined by providing the flag
17           multiple times.
18
19       -B, --button-no-terminal <text> <action>
20           Create a button with the text text that executes action when
21           pressed. action will be run directly instead of in a terminal. Mul‐
22           tiple buttons can be defined by providing the flag multiple times.
23
24       -z, --button-dismiss <text> <action>
25           Create a button with the text text that executes action when
26           pressed, and dismisses swaynag. If the environment variable TERMI‐
27           NAL is set, action will be run inside the terminal. Otherwise, it
28           will fallback to running directly. Multiple buttons can be defined
29           by providing the flag multiple times.
30
31       -Z, --button-dismiss-no-terminal <text> <action>
32           Create a button with the text text that executes action when
33           pressed, and dismisses swaynag. action will be run directly instead
34           of in a terminal. Multiple buttons can be defined by providing the
35           flag multiple times.
36
37       -c, --config <path>
38           The config file to use. By default, the following paths are
39           checked: $HOME/.swaynag/config, $XDG_CONFIG_HOME/swaynag/config,
40           and SYSCONFDIR/swaynag/config. All flags aside from this one and
41           debug are valid options in the configuration file using the format
42           long-option=value. All leading dashes should be omitted and the
43           equals sign is required. See swaynag(5) for more information.
44
45       -d, --debug
46           Enable debugging.
47
48       -e, --edge top|bottom
49           Set the edge to use.
50
51       -y, --layer overlay|top|bottom|background
52           Set the layer to use.
53
54       -f, --font <font>
55           Set the font to use.
56
57       -h, --help
58           Show help message and quit.
59
60       -l, --detailed-message
61           Read a detailed message from stdin. A button to toggle details will
62           be added. Details are shown in a scrollable multi-line text area.
63
64       -L, --detailed-button <text>
65           Set the text for the button that toggles details. This has no ef‐
66           fect if there is not a detailed message. The default is Toggle de‐
67           tails.
68
69       -m, --message <msg>
70           Set the message text.
71
72       -o, --output <output>
73           Set the output to use. This should be the name of a xdg_output.
74
75       -s, --dismiss-button <text>
76           Sets the text for the dismiss nagbar button. The default is X.
77
78       -t, --type <type>
79           Set the message type. Two types are created by default error and
80           warning. Custom types can be defined in the config file. See --con‐
81           fig and swaynag(5) for details. Both of the default types can be
82           overridden in the config file as well.
83
84       -v, --version
85           Show the version number and quit.
86

APPEARANCE OPTIONS

88       --background <RRGGBB[AA]>
89           Set the color of the background.
90
91       --border <RRGGBB[AA]>
92           Set the color of the border.
93
94       --border-bottom <RRGGBB[AA]>
95           Set the color of the bottom border.
96
97       --button-background <RRGGBB[AA]>
98           Set the color for the background for buttons.
99
100       --text <RRGGBB[AA]>
101           Set the text color.
102
103       --button-text <RRGGBB[AA]>
104           Set the button text color.
105
106       --border-bottom-size <size>
107           Set the thickness of the bottom border.
108
109       --message-padding <padding>
110           Set the padding for the message.
111
112       --details-background <RRGGBB[AA]>
113           Set the color for the background for details.
114
115       --details-border-size <size>
116           Set the thickness for the details border.
117
118       --button-border-size <size>
119           Set the thickness for the button border.
120
121       --button-gap <gap>
122           Set the size of the gap between buttons.
123
124       --button-dismiss-gap <gap>
125           Set the size of the gap between the dismiss button and another but‐
126           ton.
127
128       --button-margin-right <margin>
129           Set the margin from the right of the dismiss button to edge.
130
131       --button-padding <padding>
132           Set the padding for the button text.
133

SEE

135       swaynag(5)
136
137
138
139                                  2022-01-22                        swaynag(1)
Impressum