This repository has been archived on 2025-11-26. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
nixos-config/modules/home/scripts/scripts/shutdown-script.sh
2023-12-14 00:00:06 +01:00

10 lines
No EOL
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