Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # A dmenu binary prompt script. Source: Luke Smith https://www.youtube.com/watch?v=R9m723tAurA
- # Gives dmenu prompt labeled with $1 to perform command $2
- # For example:
- # './prompt "Do you want to shutdown?" "shutdown -h now"
- [ $(echo -e "No\nYes" | dmenu -i -p "$1") \
- == "Yes" ] && $2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement