nixos-config/modules/home/scripts/scripts/shutdown-script.sh
2023-12-14 00:00:06 +01:00

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