Warning Dialog

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

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

#!/bin/bash

zenity --warning \
--text="Disconnect the power cable to avoid electrical shock."

Warning Dialog Example

Zenity warning dialog example