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

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

choice="$(
    printf '%s\n' \
        "󰌪  Theme wechseln" \
        "󰸉  Wallpaper wechseln" |
        wofi --dmenu --prompt "󰉼  Aussehen" --insensitive
)"

case "$choice" in
    *"Theme wechseln"*)
        "$SCRIPT_DIR/ags-switcher.sh" theme
        ;;
    *"Wallpaper wechseln"*)
        "$SCRIPT_DIR/ags-switcher.sh" wallpaper
        ;;
esac
