#!/bin/bash # base setup, run by install.sh's `setup` step after the files are in place. # Idempotent; honours OMARCHY_SETUP_DRY=1. set -uo pipefail # Qt 6.12's QtQuick Color singleton blanks the bar (see bin/omarchy-fix-qt-color). # An omarchy upgrade restores the stock shell, so re-run install.sh's setup step, # or the script itself, after updating. fix=$OMARCHY_SETUP_LAYER/bin/omarchy-fix-qt-color if [[ ! -d /usr/share/omarchy/shell ]]; then echo " = no Omarchy shell; Qt Color fix not needed" elif "$fix" --check >/dev/null; then echo " = shell is clear of the Qt Color clash" elif [[ ${OMARCHY_SETUP_DRY:-0} == 1 ]]; then echo " ? would: $fix" elif "$fix" | sed 's/^/ /'; then pgrep -x quickshell >/dev/null && command -v omarchy-restart-shell >/dev/null && omarchy-restart-shell else echo " ! Qt Color fix failed; run $fix by hand" fi