#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-or-later
set -eu
if [ -d /run/archiso/bootmnt ]; then
    notify-send 'Meowven live session' 'The live account has no password. Screen locking is available after installation.'
    exit 0
fi
if pgrep -u "$(id -u)" -x hyprlock >/dev/null; then
    exit 0
fi
exec hyprlock -c "$HOME/.config/chroma/hypr/hyprlock.conf"
