post_install() {
  cat <<'EOF'
The BlueRune desktop is installed. To use it:

  1. Run bluerune-setup: where no login screen starts at boot, it enables BlueRune's
     own (greetd). Settings > Login screen switches to it from another.
  2. At the login screen, pick the "BlueRune" session and log in.

The first login opens a welcome window: accent, wallpaper, light or dark, your
Quickshell ii settings, these apps as your defaults, and a tour of the keys.
Run `bluerunectl welcome` to see it again.
EOF
}

post_upgrade() {
  # Before 3, bluerune-desktop depended on SDDM. A system whose login screen is SDDM keeps it,
  # but pacman now counts it as an orphan, which `pacman -Rns $(pacman -Qdtq)` would remove.
  # A scriptlet can't run pacman, so say how to keep it.
  (( $(vercmp "$2" 3) < 0 )) || return 0
  [[ $(readlink /etc/systemd/system/display-manager.service 2>/dev/null) == */sddm.service ]] || return 0
  cat <<'EOF'
bluerune-desktop no longer depends on SDDM; BlueRune's own login screen (greetd) comes
with it instead. Your login screen is SDDM: keep it installed with
    sudo pacman -D --asexplicit sddm
or pacman will count it as unneeded. Nothing was switched.
EOF
}
