blob: 972f8aa1f9a64a5388505359bf6a99326d42af45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# graphical_prompt.sh
graphical_prompt.sh is a shell script that uses zenity to create a graphical prompt before executing a given command. I originally wrote it to use as a logout prompt for openbox, but the script can be used to prompt before running any command.
### Usage
`graphical_prompt.sh COMMAND [PROMPT]`
### Example
The script can be used to prompt before shut down as follows:
`graphical_prompt.sh "shutdown now" "Log Off and Shutdown?"`
Running the above will generate the following prompt:
![prompt](example.png)
|