New users get a one-time welcome window on first boot (self-gating marker, skipped for the live/installer user) and a keybind cheatsheet on SUPER+/. Also bind BOS Settings to SUPER+, (it had no launcher bind). Both popups are floated/centred via window rules. Addresses the onboarding/ discoverability gap from external review. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
594 B
Bash
15 lines
594 B
Bash
#!/bin/bash
|
|
# First-run welcome. Shows a short getting-started message once, then drops a
|
|
# marker so it never shows again. Launched from the Hyprland autostart; the
|
|
# bos-welcome window class is floated/centred by a Hyprland window rule.
|
|
set -u
|
|
|
|
# Never run in the live/installer session — only on an installed system.
|
|
[[ "$(id -un)" == "liveuser" ]] && exit 0
|
|
|
|
marker="${XDG_CONFIG_HOME:-$HOME/.config}/bos/.welcomed"
|
|
[[ -f "$marker" ]] && exit 0
|
|
mkdir -p "$(dirname "$marker")"
|
|
touch "$marker"
|
|
|
|
exec kitty --class bos-welcome --title "Welcome to BOS" -- less -R /usr/share/bos/welcome.txt
|