frues-clan/users/pedro/home-configuration/scripts/scripts/shutdown-script.sh
Pedro Rey Anca 7606f9e051
Some checks failed
Update `flake.lock` / update_lockfile (push) Waiting to run
Flake check / check (push) Has been cancelled
Migrate config (frues-pc machine for now) from https://git.peprolinbot.com/peprolinbot/nixos-config, with improvements
2025-09-08 18:59:28 +02:00

13 lines
328 B
Bash
Executable file

respond="$(echo -e "󰐥 Shutdown\n󰜉 Restart\n󰜺 Cancel" | fuzzel --dmenu --lines=3 --width=15 --prompt='Choose action: ')"
if [ "$respond" = '󰐥 Shutdown' ]
then
echo "shutdown"
shutdown now
elif [ "$respond" = '󰜉 Restart' ]
then
echo "restart"
reboot
else
notify-send "Shutdown cancelled"
fi