Upgrade system menu features

This commit is contained in:
2023-10-30 23:27:58 -07:00
parent cf73e8a8ed
commit a502b72299
3 changed files with 39 additions and 2 deletions

20
system-menu/system-menu.sh Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env zsh
local scripts_dir="$(dirname "$(realpath "${0}")")"
choice="$(fuzzel --index -d <<'EOF'
Select system sound output
Power settings (restart and shutdown)
EOF
)"
(( ${?} != 0 )) && exit
echo $choice
case "${choice}" in
0)
"${scripts_dir}/select-sound-output.sh"
;;
1)
"${scripts_dir}/system-power-menu.sh"
;;
esac