#!/bin/bash

[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
    echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
    exit 1
}
. "$HOME/.local/snippets/apply-color-helper"

if ! qs ipc call colors set mPrimary "$colorHex"; then
    log_error "Failed to set quickshell primary color"
    exit 1
fi

log_success "quickshell"
