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:
@@ -27,13 +27,16 @@ rofi_menu() {
|
||||
" Toggle Notification Center - toggle-center"
|
||||
" Pause Popup Notifications - pause"
|
||||
" Unpause Popup Notifications - unpause"
|
||||
" 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