#!/usr/bin/env bash DIR="$HOME/.config/polybar/qpanels/menu" launcher() { rofi -no-config -no-lazy-grab -show drun -modi drun -theme "$DIR"/"$theme"/launcher.rasi } if [[ "$1" = "--budgie" ]]; then theme="budgie" launcher elif [[ "$1" = "--deepin" ]]; then theme="deepin" launcher elif [[ "$1" = "--elight" || "$1" = "--elementary" ]]; then theme="elementary" launcher elif [[ "$1" = "--edark" || "$1" = "--elementary_dark" ]]; then theme="elementary_dark" launcher elif [[ "$1" = "--gnome" ]]; then theme="gnome" launcher elif [[ "$1" = "--klight" || "$1" = "--kde" ]]; then theme="kde" launcher elif [[ "$1" = "--kdark" || "$1" = "--kde_dark" ]]; then theme="kde_dark" launcher elif [[ "$1" = "--liri" ]]; then theme="liri" launcher elif [[ "$1" = "--mint" ]]; then theme="mint" launcher elif [[ "$1" = "--ugnome" || "$1" = "--ubuntu_gnome" ]]; then theme="ubuntu_gnome" launcher elif [[ "$1" = "--unity" || "$1" = "--ubuntu_unity" ]]; then theme="ubuntu_unity" launcher elif [[ "$1" = "--xubuntu" ]]; then theme="xubuntu" launcher elif [[ "$1" = "--zorin" ]]; then theme="zorin" launcher else rofi -e "No theme specified." exit 1 fi