#!/usr/bin/env bash
# forgeOS Calendar popup: opened by clicking the date in the top bar or from the
# launcher. Closes it instead if it is already open.
set -u

popup=/usr/share/forgeos/quickshell/calendar.qml

qs ipc --path "$popup" call calendar close >/dev/null 2>&1 && exit 0
exec quickshell --no-duplicate --path "$popup"
