{{- $fallback_bg := (index .chezmoi.config.data "lockscreen-wallpaper") -}}
{{- if not $fallback_bg -}}
  {{- $fallback_bg = "~/.config/wallpaper/lockscreen/current" -}}
{{- end -}}
# Shared look (palette, font, input-field, clock, date) comes from the sourced fragment.
# Same fragment is installed to /etc/hyprlogin/apex-neon.conf and used by hyprlogin.
source = ~/.config/hypr/themes/apex-neon-lock.conf

general {
  hide_cursor = true
  ignore_empty_input = true
}

{{ range .monitors -}}
{{- $wp := index . "lockscreen-wallpaper" -}}
background {
  monitor = {{ .name }}
  path = {{ if $wp }}{{ $wp }}{{ else }}{{ $fallback_bg }}{{ end }}
}
{{ end -}}

# --- TOP-RIGHT: notification bubble (hyprlock-only; requires quickshell) ---
shape {
    monitor =
    size = 130, 52
    color = rgba(7, 7, 9, 0.55)
    rounding = 16
    border_size = 2
    border_color = rgba(255, 0, 68, 0.55)
    position = -100, -76
    halign = right
    valign = top
    z_index = -1
}

label {
    monitor =
    text = cmd[update:5000] n=$(qs ipc call notifications count 2>/dev/null); { [ -n "$n" ] && [ "$n" != "0" ] && printf '  %s' "$n"; } || true
    color = rgba(255, 0, 68, 0.95)
    font_size = 20
    font_family = GeistMono Nerd Font
    position = -125, -86
    halign = right
    valign = top
}
