Open the keybindings menu on first login
The welcome toast spent three lines telling you about a cheatsheet that takes one keystroke to read, and the only way to act on it was to click the toast, which opened that cheatsheet. Open it directly instead. Dismissing the menu exits non-zero, since no selection was made, so the step tolerates that rather than failing first run and retrying the whole sequence next login. It also goes last now. The menu blocks until it is answered, and the Wi-Fi and update toasts are the only other things left to show, so sending those first leaves them waiting underneath rather than behind an open menu. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
383addc8c4
commit
23d85a992b
@@ -83,12 +83,12 @@ run_first_run_step "apply speaker tuning" \
|
||||
bash "$OMARCHY_PATH/install/user/first-run/audio-tuning.sh"
|
||||
|
||||
omarchy-notification-wait || log_first_run "Timed out waiting for notification service; continuing"
|
||||
# Each send returns only once the server has taken the toast, so sending in
|
||||
# order is enough to stack them newest-on-top.
|
||||
run_first_run_step "show welcome notification" \
|
||||
bash "$OMARCHY_PATH/install/user/first-run/welcome.sh"
|
||||
run_first_run_step "show Wi-Fi/update notifications" \
|
||||
bash "$OMARCHY_PATH/install/user/first-run/wifi.sh"
|
||||
# Waits for the menu to be answered, so it goes last and leaves the toasts
|
||||
# waiting underneath.
|
||||
run_first_run_step "show keybindings" \
|
||||
bash "$OMARCHY_PATH/install/user/first-run/keybindings.sh"
|
||||
|
||||
if (( first_run_failed == 0 )); then
|
||||
omarchy-done mark "$FIRST_RUN_DONE"
|
||||
|
||||
+4
-3
@@ -237,9 +237,10 @@ systemd instance:
|
||||
- `install/user/first-run/gnome-theme.sh`,
|
||||
`install/user/first-run/gtk-primary-paste.sh` — GNOME/GTK settings that
|
||||
need the dconf daemon.
|
||||
- `install/user/first-run/welcome.sh`,
|
||||
`install/user/first-run/wifi.sh` — welcome and Wi-Fi/update toasts
|
||||
(waits for a live notification server before firing).
|
||||
- `install/user/first-run/wifi.sh` — Wi-Fi/update toasts (waits for a live
|
||||
notification server before firing).
|
||||
- `install/user/first-run/keybindings.sh` — opens the keybindings menu to
|
||||
greet the first login; blocks until it is answered.
|
||||
|
||||
The entire sequence has one idempotency marker:
|
||||
`~/.local/state/omarchy/done/first-run-user`, managed by `omarchy-done`.
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# Greet the first login with the cheatsheet itself rather than a toast
|
||||
# pointing at it. The menu blocks until it is answered, and dismissing it
|
||||
# exits non-zero, which is a normal way to close it.
|
||||
omarchy-menu-keybindings || true
|
||||
@@ -1,3 +0,0 @@
|
||||
omarchy-notification-send -u critical -g "Learn Keybindings" \
|
||||
"Super + K for cheatsheet.\nSuper + Space for application launcher.\nSuper + Alt + Space for Omarchy Menu." \
|
||||
--exec omarchy-menu-keybindings
|
||||
Reference in New Issue
Block a user