#!/usr/bin/env bash
set -euo pipefail

SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"

choice="$(
    printf '%s\n' \
        "󰉼  Aussehen" \
        "󰕾  Audio" \
        "󰂯  Bluetooth" \
        "󰍹  Display" \
        "󰤨  Netzwerk" \
        "󰸉  Screenshot" \
        "󰒓  System" |
        wofi --dmenu --prompt "󰒓  Einstellungen" --insensitive
)"

case "$choice" in
    *"Aussehen"*)
        "$SCRIPT_DIR/appearance-menu.sh"
        ;;
    *"Audio"*)
        "$SCRIPT_DIR/audio-menu.sh"
        ;;
    *"Netzwerk"*)
        "$SCRIPT_DIR/network-menu.sh"
        ;;
    *"Bluetooth"*)
        "$SCRIPT_DIR/bluetooth-menu.sh"
        ;;
    *"Display"*)
        "$SCRIPT_DIR/display-menu.sh"
        ;;
    *"Screenshot"*)
        "$SCRIPT_DIR/screenshot-menu.sh"
        ;;
    *"System"*)
        "$SCRIPT_DIR/system-menu.sh"
        ;;
esac
