Skip to content

Shell script to create a graphical prompt before running a command

Notifications You must be signed in to change notification settings

lshprung/Graphical-Prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Shell script to create a graphical prompt before running a command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages