Upgrade system menu features
This commit is contained in:
17
system-menu/system-power-menu.sh
Executable file
17
system-menu/system-power-menu.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
choice="$(fuzzel --index -d <<'EOF'
|
||||
Shutdown
|
||||
Restart
|
||||
EOF
|
||||
)"
|
||||
|
||||
(( ${?} != 0 )) && exit
|
||||
case "${choice}" in
|
||||
0)
|
||||
poweroff
|
||||
;;
|
||||
1)
|
||||
restart
|
||||
;;
|
||||
esac
|
Reference in New Issue
Block a user