10 lines
279 B
Bash
Executable file
10 lines
279 B
Bash
Executable file
#!/usr/bin/env zsh
|
|
|
|
respond="$(echo "---------------- Yes ----------------\n---------------- Nah ----------------" | wofi --show dmenu)"
|
|
if [ $respond = '---------------- Yes ----------------' ]
|
|
then
|
|
echo "shutdown"
|
|
shutdown now
|
|
else
|
|
notify-send "cancel shutdown"
|
|
fi |