18 lines
199 B
Bash
Executable File
18 lines
199 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
choice="$(fuzzel --index -d <<'EOF'
|
|
Shutdown
|
|
Restart
|
|
EOF
|
|
)"
|
|
|
|
(( ${?} != 0 )) && exit
|
|
case "${choice}" in
|
|
0)
|
|
poweroff
|
|
;;
|
|
1)
|
|
restart
|
|
;;
|
|
esac
|