Use the --scale option. Scale Dialog

Use the --scale option to create a scale dialog.

The scale dialog supports the following options:

<cmd>--text</cmd>=<var>TEXT</var>

Set the dialog text. (Default: Adjust the scale value)

<cmd>--value</cmd>=<var>VALUE</var>

Set initial value. (Default: 0) You must specify value between minimum value to maximum value.

<cmd>--min-value</cmd>=<var>VALUE</var>

Set minimum value. (Default: 0)

<cmd>--max-value</cmd>=<var>VALUE</var>

Set maximum value. (Default: 100)

<cmd>--step</cmd>=<var>VALUE</var>

Set step size. (Default: 1)

<cmd>--print-partial</cmd>

Print value to standard output, whenever a value is changed.

<cmd>--hide-value</cmd>

Hide value on dialog.

The following example script shows how to create a scale dialog:

#!/bin/sh VALUE=`zenity --scale --text="Select window transparency." --value=50` case $? in 0) echo "You selected $VALUE%.";; 1) echo "No value selected.";; -1) echo "An unexpected error has occurred.";; esac
Password Entry Dialog Example Zenity password entry dialog example