#!/usr/bin/env bash

set -euo pipefail

gallery="${XDG_CONFIG_HOME:-$HOME/.config}/quickshell/prism-gallery.qml"

if qs -p "$gallery" ipc show >/dev/null 2>&1; then
    qs -p "$gallery" kill
else
    qs -p "$gallery" --daemonize
fi
