summaryrefslogtreecommitdiff
path: root/data/zenity.1
blob: 9ddf02ff20d2ab68fe156eeea44b797048363c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.48.5.
.TH ZENITY "1" "May 2023" "zenity  " "User Commands"
.SH NAME
zenity \- display GTK dialogs
.SH DESCRIPTION

\fBzenity\fP is a program that will display GTK+ dialogs, and return
(either in the return code, or on standard output) the users
input. This allows you to present information, and ask for information
from the user, from all manner of shell scripts.
.PP
For example, \fBzenity \-\-question\fP will return either 0, 1 or 5,
depending on whether the user pressed \fIOK\fP, \fICancel\fP or timeout
has been reached. \fBzenity \-\-entry\fP will output on standard output
what the user typed into the text entry field.
.PP
Comprehensive documentation is also available in the GNOME Help Browser.
.SS "Usage:"
.IP
zenity [OPTION?]
.SS "Help Options:"
.TP
\fB\-h\fR, \fB\-\-help\fR
Show help options
.TP
\fB\-\-help\-all\fR
Show all help options
.TP
\fB\-\-help\-general\fR
Show general options
.TP
\fB\-\-help\-calendar\fR
Show calendar options
.TP
\fB\-\-help\-entry\fR
Show text entry options
.TP
\fB\-\-help\-error\fR
Show error options
.TP
\fB\-\-help\-info\fR
Show info options
.TP
\fB\-\-help\-file\-selection\fR
Show file selection options
.TP
\fB\-\-help\-list\fR
Show list options
.TP
\fB\-\-help\-notification\fR
Show notification options
.TP
\fB\-\-help\-progress\fR
Show progress options
.TP
\fB\-\-help\-question\fR
Show question options
.TP
\fB\-\-help\-warning\fR
Show warning options
.TP
\fB\-\-help\-scale\fR
Show scale options
.TP
\fB\-\-help\-text\-info\fR
Show text information options
.TP
\fB\-\-help\-color\-selection\fR
Show color selection options
.TP
\fB\-\-help\-password\fR
Show password dialog options
.TP
\fB\-\-help\-forms\fR
Show forms dialog options
.TP
\fB\-\-help\-misc\fR
Show miscellaneous options
.PP
General options
.TP
\fB\-\-title\fR=\fI\,TITLE\/\fR
Set the dialog title
.TP
\fB\-\-width\fR=\fI\,WIDTH\/\fR
Set the width
.TP
\fB\-\-height\fR=\fI\,HEIGHT\/\fR
Set the height
.TP
\fB\-\-timeout\fR=\fI\,TIMEOUT\/\fR
Set dialog timeout in seconds
.TP
\fB\-\-ok\-label\fR=\fI\,TEXT\/\fR
Set the label of the OK button
.TP
\fB\-\-cancel\-label\fR=\fI\,TEXT\/\fR
Set the label of the Cancel button
.TP
\fB\-\-extra\-button\fR=\fI\,TEXT\/\fR
Add an extra button
.TP
\fB\-\-modal\fR
Set the modal hint
.TP
\fB\-\-attach\fR=\fI\,WINDOW\/\fR
DEPRECATED; does nothing
.PP
Calendar options
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the dialog text
.TP
\fB\-\-day\fR=\fI\,DAY\/\fR
Set the calendar day
.TP
\fB\-\-month\fR=\fI\,MONTH\/\fR
Set the calendar month
.TP
\fB\-\-year\fR=\fI\,YEAR\/\fR
Set the calendar year
.TP
\fB\-\-date\-format\fR=\fI\,PATTERN\/\fR
Set the format for the returned date
.PP
Text entry options
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the dialog text
.TP
\fB\-\-entry\-text\fR=\fI\,TEXT\/\fR
Set the entry text
.TP
\fB\-\-hide\-text\fR
Hide the entry text
.PP
Error options
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the dialog text
.TP
\fB\-\-icon\fR=\fI\,ICON\-NAME\/\fR
Set the icon name
.TP
\fB\-\-no\-wrap\fR
Do not enable text wrapping
.TP
\fB\-\-no\-markup\fR
Do not enable Pango markup
.TP
\fB\-\-ellipsize\fR
Enable ellipsizing in the dialog text. This fixes the high window size with long texts
.PP
Info options
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the dialog text
.TP
\fB\-\-icon\fR=\fI\,ICON\-NAME\/\fR
Set the icon name
.TP
\fB\-\-no\-wrap\fR
Do not enable text wrapping
.TP
\fB\-\-no\-markup\fR
Do not enable Pango markup
.TP
\fB\-\-ellipsize\fR
Enable ellipsizing in the dialog text. This fixes the high window size with long texts
.PP
File selection options
.TP
\fB\-\-filename\fR=\fI\,FILENAME\/\fR
Set the filename
.TP
\fB\-\-multiple\fR
Allow multiple files to be selected
.TP
\fB\-\-directory\fR
Activate directory\-only selection
.TP
\fB\-\-save\fR
Activate save mode
.TP
\fB\-\-separator\fR=\fI\,SEPARATOR\/\fR
Set output separator character
.TP
\fB\-\-file\-filter\fR=\fI\,NAME\/\fR | PATTERN1 PATTERN2 ...
Set a filename filter
.TP
\fB\-\-confirm\-overwrite\fR
DEPRECATED; does nothing
.PP
List options
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the dialog text
.TP
\fB\-\-column\fR=\fI\,COLUMN\/\fR
Set the column header
.TP
\fB\-\-checklist\fR
Use check boxes for the first column
.TP
\fB\-\-radiolist\fR
Use radio buttons for the first column
.TP
\fB\-\-imagelist\fR
Use an image for the first column
.TP
\fB\-\-separator\fR=\fI\,SEPARATOR\/\fR
Set output separator character
.TP
\fB\-\-multiple\fR
Allow multiple rows to be selected
.TP
\fB\-\-editable\fR
Allow changes to text
.TP
\fB\-\-print\-column\fR=\fI\,NUMBER\/\fR
Print a specific column (Default is 1. 'ALL' can be used to print all columns)
.TP
\fB\-\-hide\-column\fR=\fI\,NUMBER\/\fR
Hide a specific column
.TP
\fB\-\-hide\-header\fR
Hide the column headers
.TP
\fB\-\-mid\-search\fR
DEPRECATED; does nothing
.PP
Notification options
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the notification text
.TP
\fB\-\-icon\fR=\fI\,ICON\-NAME\/\fR
Set the icon name
.TP
\fB\-\-listen\fR
Listen for commands on stdin
.TP
\fB\-\-hint\fR=\fI\,TEXT\/\fR
DEPRECATED; does nothing
.PP
Progress options
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the dialog text
.TP
\fB\-\-percentage\fR=\fI\,PERCENTAGE\/\fR
Set initial percentage
.TP
\fB\-\-pulsate\fR
Pulsate progress bar
.TP
\fB\-\-auto\-close\fR
Dismiss the dialog when 100% has been reached
.TP
\fB\-\-auto\-kill\fR
Kill parent process if Cancel button is pressed
.TP
\fB\-\-no\-cancel\fR
Hide Cancel button
.TP
\fB\-\-time\-remaining\fR
Estimate when progress will reach 100%
.PP
Question options
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the dialog text
.TP
\fB\-\-icon\fR=\fI\,ICON\-NAME\/\fR
Set the icon name
.TP
\fB\-\-no\-wrap\fR
Do not enable text wrapping
.TP
\fB\-\-no\-markup\fR
Do not enable Pango markup
.TP
\fB\-\-default\-cancel\fR
Give Cancel button focus by default
.TP
\fB\-\-ellipsize\fR
Enable ellipsizing in the dialog text. This fixes the high window size with long texts
.TP
\fB\-\-switch\fR
Suppress OK and Cancel buttons
.PP
Warning options
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the dialog text
.TP
\fB\-\-icon\fR=\fI\,ICON\-NAME\/\fR
Set the icon name
.TP
\fB\-\-no\-wrap\fR
Do not enable text wrapping
.TP
\fB\-\-no\-markup\fR
Do not enable Pango markup
.TP
\fB\-\-ellipsize\fR
Enable ellipsizing in the dialog text. This fixes the high window size with long texts
.PP
Scale options
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the dialog text
.TP
\fB\-\-value\fR=\fI\,VALUE\/\fR
Set initial value
.TP
\fB\-\-min\-value\fR=\fI\,VALUE\/\fR
Set minimum value
.TP
\fB\-\-max\-value\fR=\fI\,VALUE\/\fR
Set maximum value
.TP
\fB\-\-step\fR=\fI\,VALUE\/\fR
Set step size
.TP
\fB\-\-print\-partial\fR
Print partial values
.TP
\fB\-\-hide\-value\fR
Hide value
.PP
Text information options
.TP
\fB\-\-filename\fR=\fI\,FILENAME\/\fR
Open file
.TP
\fB\-\-editable\fR
Allow changes to text
.TP
\fB\-\-font\fR=\fI\,TEXT\/\fR
Set the text font
.TP
\fB\-\-checkbox\fR=\fI\,TEXT\/\fR
Enable an I read and agree checkbox
.TP
\fB\-\-auto\-scroll\fR
Auto scroll the text to the end. Only when text is captured from stdin
.PP
Color selection options
.TP
\fB\-\-color\fR=\fI\,VALUE\/\fR
Set the color
.TP
\fB\-\-show\-palette\fR
Show the palette
.PP
Password dialog options
.TP
\fB\-\-username\fR
Display the username option
.PP
Forms dialog options
.TP
\fB\-\-add\-entry\fR=\fI\,Field\/\fR name
Add a new Entry in forms dialog
.TP
\fB\-\-add\-password\fR=\fI\,Field\/\fR name
Add a new Password Entry in forms dialog
.TP
\fB\-\-add\-calendar\fR=\fI\,Calendar\/\fR field name
Add a new Calendar in forms dialog
.TP
\fB\-\-add\-list\fR=\fI\,List\/\fR field and header name
Add a new List in forms dialog
.TP
\fB\-\-list\-values\fR=\fI\,List\/\fR of values separated by |
List of values for List
.TP
\fB\-\-column\-values\fR=\fI\,List\/\fR of values separated by |
List of values for columns
.TP
\fB\-\-add\-combo\fR=\fI\,Combo\/\fR box field name
Add a new combo box in forms dialog
.TP
\fB\-\-combo\-values\fR=\fI\,List\/\fR of values separated by |
List of values for combo box
.TP
\fB\-\-show\-header\fR
Show the columns header
.TP
\fB\-\-text\fR=\fI\,TEXT\/\fR
Set the dialog text
.TP
\fB\-\-separator\fR=\fI\,SEPARATOR\/\fR
Set output separator character
.TP
\fB\-\-forms\-date\-format\fR=\fI\,PATTERN\/\fR
Set the format for the returned date
.PP
Miscellaneous options
.TP
\fB\-\-about\fR
About zenity
.TP
\fB\-\-version\fR
Print version
.SS "Application Options:"
.TP
\fB\-\-calendar\fR
Display calendar dialog
.TP
\fB\-\-entry\fR
Display text entry dialog
.TP
\fB\-\-error\fR
Display error dialog
.TP
\fB\-\-info\fR
Display info dialog
.TP
\fB\-\-file\-selection\fR
Display file selection dialog
.TP
\fB\-\-list\fR
Display list dialog
.TP
\fB\-\-notification\fR
Display notification
.TP
\fB\-\-progress\fR
Display progress indication dialog
.TP
\fB\-\-question\fR
Display question dialog
.TP
\fB\-\-warning\fR
Display warning dialog
.TP
\fB\-\-scale\fR
Display scale dialog
.TP
\fB\-\-text\-info\fR
Display text information dialog
.TP
\fB\-\-color\-selection\fR
Display color selection dialog
.TP
\fB\-\-password\fR
Display password dialog
.TP
\fB\-\-forms\fR
Display forms dialog
.SH EXAMPLES

Display a file selector with the title \fISelect a file to
remove\fP. The file selected is returned on standard output.
.IP
zenity  \-\-title="Select a file to remove" \-\-file-selection
.PP
Display a text entry dialog with the title \fISelect Host\fP and the
text \fISelect the host you would like to flood-ping\fP. The entered
text is returned on standard output.
.IP
zenity  \-\-title "Select Host" \-\-entry \-\-text "Select the host you would like to flood-ping"
.PP
Display a dialog, asking \fIMicrosoft Windows has been found! Would
you like to remove it?\fP. The return code will be 0 (true in shell)
if \fIOK\fP is selected, and 1 (false) if \fICancel\fP is selected.
.IP
zenity  \-\-question \-\-title "Alert"  \-\-text "Microsoft Windows has been found! Would you like to remove it?"
.PP
Show the search results in a list dialog with the title \fISearch Results\fP
and the text \fIFinding all header files...\fP.
.IP
find . \-name '*.h' | zenity \-\-list \-\-title "Search Results" \-\-text "Finding all header files.." \-\-column "Files"
.PP
Show a passive notification
.IP
zenity \-\-notification \-\-icon=software-update-available \-\-text "System update necessary!"
.PP
Display a weekly shopping list in a check list dialog with \fIApples\fP and \fIOranges\fP pre selected
.IP
zenity \-\-list \-\-checklist \-\-column "Buy" \-\-column "Item" TRUE Apples TRUE Oranges FALSE Pears FALSE Toothpaste
.PP
Display a progress dialog while searching for all the postscript files in your home directory
.P
find $HOME \-name '*.ps' | zenity \-\-progress \-\-pulsate
.SH AUTHOR

.PP
\fBZenity\fP was originally written by Glynn Foster <glynn.foster@sun.com>. It has since been maintained by a number of contributors since then.
.PP
This manual page was originally written by Ross Burton <ross@burtonini.com>. It currently contains portions which are automatically generated, and other portions written by its original author.
.SH "SEE ALSO"

\fBdialog\fP(1)