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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user