11 lines
258 B
Bash
Executable file
11 lines
258 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Use dmenu to promt no or yes with $1 as promt. If the use clickes yes run $2"
|
|
# example: promt "Shutdown?" "sudo shutdown now"
|
|
|
|
posRep="Yes"
|
|
negRep="No"
|
|
choosen=$(echo -e "$negRep\n$posRep" | dmenu -p "$1")
|
|
|
|
[[ "$choosen" == "$posRep" ]] && $2
|
|
|