The package-installed paths live at /usr/share/omarchy; the script-install
paths live at ~/.local/share/omarchy. $OMARCHY_PATH is set by install.sh
during the install flow and by /etc/profile.d/omarchy.sh in package mode.
Scripts that hard-code the script-install path don't honour that and will
misbehave once shipped to /usr/bin.
16 files migrated via sed s|~/\.local/share/omarchy|$OMARCHY_PATH|g
and s|$HOME/\.local/share/omarchy|$OMARCHY_PATH|g:
bin/:
- omarchy-plymouth-{preview,reset,set}
- omarchy-refresh-{limine,plymouth}
- omarchy-reinstall-configs
- omarchy-show-logo
- omarchy-games-retro-install
- omarchy-install-gaming-battlenet
install/:
- config/branding.sh
- packaging/{fonts,icons}.sh
- post-install/{finished,pacman}.sh
- preflight/{migrations,pacman}.sh
Deliberately NOT migrated:
- bin/omarchy-dev-add-migration: uses 'cd ~/.local/share/omarchy' to
resolve a git repo for 'git log'. The packaged binary doesn't have a
git repo to read; this command only makes sense in dev mode where
the home path is the right one.
- bin/omarchy-install-browser:69: writes a string into a chromium
config file that chromium itself interprets; not a bash-resolved path.
- install/helpers/errors.sh:125: the boot.sh-style relaunch behaviour
needs a separate redesign.
25 lines
573 B
Bash
Executable File
25 lines
573 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Reset all Omarchy user configs to the defaults
|
|
# omarchy:requires-sudo=true
|
|
|
|
set -e
|
|
|
|
# Overwrite all user configs with the Omarchy defaults.
|
|
|
|
if (( EUID == 0 )); then
|
|
echo "Error: This script should not be run as root"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Resetting all Omarchy configs"
|
|
cp -R $OMARCHY_PATH/config/* ~/.config/
|
|
cp $OMARCHY_PATH/default/bashrc ~/.bashrc
|
|
echo '[[ -f ~/.bashrc ]] && . ~/.bashrc' | tee ~/.bash_profile >/dev/null
|
|
|
|
$(bash $OMARCHY_PATH/install/config/theme.sh)
|
|
|
|
omarchy-refresh-limine
|
|
omarchy-refresh-plymouth
|
|
omarchy-nvim-setup
|