Files
omarchy/bin/omarchy-install-preinstalls
T
David Heinemeier HanssonandClaude Opus 5.5 944fa24fd1 Add Monologue as a default app (#13449)
Monologue is Omarchy's own webcam recorder: pick a camera and microphone
once, press Space to record, and stop straight into a built-in editor
to split, trim and remove clips before saving an MP4.

Ship it in the base packages alongside Omacut, include it in the
preinstall restore/remove lists, and describe it in the manual. A
migration installs it on existing machines unless the user removed the
preinstalls.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 22:14:28 +02:00

38 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# omarchy:summary=Restore the preinstalled Omarchy applications (web apps, TUIs, and selected packages).
# omarchy:requires-sudo=true
if gum confirm "Are you sure you want to restore all preinstalled web apps, TUI wrappers, and desktop applications?"; then
echo -e "Restoring preinstalled Omarchy applications...\n"
# Recreates the shipped .desktop launchers (web apps and TUIs) and the mise stubs
# that back claude, gh, opencode, and the rest of the agents
omarchy-refresh-applications
# Mirrors the list in omarchy-remove-preinstalls; both track omarchy-base.packages
if ! omarchy-pkg-add \
aether \
cliamp \
libreoffice-fresh \
xournalpp \
pinta \
obsidian \
obs-studio \
kdenlive \
moonlight-qt \
lazydocker \
omacut \
monologue \
omacalc \
omawrite; then
echo -e "\nPreinstalls are still marked as removed. Fix the errors above and try again."
exit 1
fi
# Last, so a failure above leaves the opt-out intact rather than restoring
# keybindings for apps that never came back
rm -f ~/.local/state/omarchy/preinstalls-removed
hyprctl reload
fi