mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-01 14:29:26 +00:00

* Update location of sourced install script * Add OMARCHY_PATH for easy access * Formatting * Enable using finder in walker (#396) * Enable using finder in walker * capitalize name property * Hot reload theme for quick switching * Use fonts from AUR instead of downloading them directly like an animal * Include the common JetBrains substitution * Add a very basic font selector for terminal * Give the new font selector a bit of room to breathe * Swap Spotify GUI to TUI * Correct package name * Add theme update script (#391) * Move updating themes from Updates to theme menu Yeah, it could go in either spot, but since we have one entire category dedicated to themes, lets keep it there. * Revert "Correct package name" This reverts commit4c46c2208a
. * Revert "Swap Spotify GUI to TUI" This reverts commitb09d2d68cd
. * Added backup timestamps to various omarchy-refresh-* files to prevent clobbering (#402) * Added backup timestamps to omarchy-refresh-[hyprlock|swayosd|walker|waybar] scripts to prevent data loss if ran multiple times * Added new script (omarchy-refresh-config) for refreshing various config files with automated backup creation * update plymouth logo (#406) * Track migrations via state files to avoid running migrations that have already been performed. (#411) * Just use set -e instead of manually checking for return values * Fix migration * Unused * Migrate fonts to packages * No longer needed * Use fd for better performance on walker finder * Add walker config refresh to enable the finder * Dropbox is now an optional setup --------- Co-authored-by: Shigeto Kumagai <shk@all.daynight.jp> Co-authored-by: Mohamedsayhii <63726183+Mohamedsayhii@users.noreply.github.com> Co-authored-by: Ryan Hughes <ryan@heyoodle.com> Co-authored-by: Andy Davis <developer.andy@gmail.com> Co-authored-by: Taha <paprikataha@gmail.com>
31 lines
1022 B
Bash
Executable File
31 lines
1022 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script deploys ~/.local/share/omarchy/config/X/Y/Z -> ~/.config/X/Y/Z
|
|
config_file=$1
|
|
|
|
if [[ -z "$config_file" ]]; then
|
|
cat << USAGE
|
|
Usage: $0 [config_file]
|
|
|
|
Must provide a file path from the .config directory to be refreshed.
|
|
To copy ~/.local/share/omarchy/config/hypr/hyprlock.conf to ~/.config/hypr/hyprlock.conf
|
|
|
|
$0 hypr/hyprlock.conf
|
|
USAGE
|
|
exit 1
|
|
fi
|
|
|
|
# Backup the destination file (with timestamp) to avoid clobbering (Ex: hyprlock.conf.bak.1753817951)
|
|
backup_file="${HOME}/.config/${config_file}.bak.$(date +%s)"
|
|
cp -f "${HOME}/.config/${config_file}" "$backup_file" 2>/dev/null
|
|
|
|
# Deploy the source file
|
|
cp -f "${HOME}/.local/share/omarchy/config/${config_file}" "${HOME}/.config/${config_file}" 2>/dev/null
|
|
|
|
# Compare and delete/inform accordingly
|
|
if cmp -s "${HOME}/.config/${config_file}" "$backup_file"; then
|
|
rm $backup_file
|
|
else
|
|
echo -e "\e[31mExisting "${HOME}/.config/${config_file}" replaced with new Omarchy default, but ${backup_file} file was made.\e[0m"
|
|
fi
|