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:
@@ -65,13 +65,16 @@ rofi_menu() {
|
||||
"羽 Launch Delayed Processes - delay"
|
||||
" Kill Startup Processes - kill-startup"
|
||||
" Kill Delayed Processes - kill-delay"
|
||||
" 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