#!/bin/sh set -eu export QT_QUICK_CONTROLS_STYLE=Material # Quickshell owns org.freedesktop.Notifications when the adaptive shell runs. export ADAPTIVE_NOTIFICATIONS="${ADAPTIVE_NOTIFICATIONS:-1}" repo=$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd) case "${1:-start}" in start) exec quickshell --no-duplicate --path "$repo/quickshell" ;; reload|status|launcher|settings|bluetooth|network|wallpapers|audio|quickSettings|recent|power|notifications|close) if ! quickshell ipc --path "$repo/quickshell" show >/dev/null 2>&1; then quickshell --daemonize --no-duplicate --path "$repo/quickshell" fi exec quickshell ipc --path "$repo/quickshell" call shell "$1" ;; stop) exec quickshell kill --path "$repo/quickshell" ;; *) printf '%s\n' 'Usage: adaptive-shell [start|stop|reload|status|launcher|settings|bluetooth|network|wallpapers|audio|quickSettings|recent|power|notifications|close]' >&2; exit 2 ;; esac