Rofi Menu Back and Quit Options & Startup Script in Control Center

- Add startup processes script to control center
- Add a "back" and "quit" rofi menu option where back exits
  current menu, leaving the option to return to previous
  menu that called it. Quit kills all rofi processes.
This commit is contained in:
Sravan Balaji
2021-08-19 17:34:23 -04:00
parent ac230e958e
commit 3846f5f516
11 changed files with 107 additions and 22 deletions

View File

@@ -29,13 +29,16 @@ rofi_menu() {
" Close Notification - close"
" View History - history"
" Toggle Do Not Disturb - dnd"
" Back - back"
" Quit - quit"
)
choice=$(printf '%s\n' "${options[@]}" | rofi -dmenu -i)
option=$(printf '%s\n' "${choice}" | awk '{print $NF}')
if [[ "$option" != "quit" ]]; then
if [[ "$option" == "quit" ]]; then
kilall rofi
elif [[ "$option" != "back" ]]; then
main "--$option" && main "--rofi"
fi
}