mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 11:35:26 +02:00
zenity: add page (#1687)
This commit is contained in:
parent
c173466f8e
commit
8571c78816
1 changed files with 24 additions and 0 deletions
24
pages/linux/zenity.md
Normal file
24
pages/linux/zenity.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# zenity
|
||||
|
||||
> Display dialogs from the command line/shell scripts.
|
||||
> Return user-inserted values or 1 if error.
|
||||
|
||||
- Display the default question dialog:
|
||||
|
||||
`zenity --question`
|
||||
|
||||
- Display an info dialog displaying the text "Hello!":
|
||||
|
||||
`zenity --info --text="{{Hello!}}"`
|
||||
|
||||
- Display a name/password form and output the data separated by ";":
|
||||
|
||||
`zenity --forms --add-entry="{{Name}}" --add-password="{{Password}}" --separator="{{;}}"`
|
||||
|
||||
- Display a file selection form in which the user can only select directories:
|
||||
|
||||
`zenity --file-selection --directory`
|
||||
|
||||
- Display a progress bar which updates its message every second and show a progress percent:
|
||||
|
||||
`{{(echo "#1"; sleep 1; echo "50"; echo "#2"; sleep 1; echo "100")}} | zenity --progress`
|
Loading…
Add table
Reference in a new issue