mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-01 22:39:24 +00:00
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
This commit is contained in:
@ -1,13 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
cp -f ~/.config/walker/config.toml ~/.config/walker/config.toml.bak 2>/dev/null
|
||||
cp -f ~/.local/share/omarchy/config/walker/config.toml ~/.config/walker/ 2>/dev/null
|
||||
|
||||
if cmp -s ~/.config/walker/config.toml.bak ~/.config/walker/config.toml; then
|
||||
rm ~/.config/walker/config.toml.bak
|
||||
else
|
||||
echo -e "\e[31mExisting .config/walker/config.toml replaced with new Omarchy default, but a .bak file was made.\e[0m"
|
||||
fi
|
||||
omarchy-refresh-config walker/config.toml
|
||||
|
||||
pkill walker
|
||||
setsid uwsm app -- walker --gapplication-service &
|
||||
|
Reference in New Issue
Block a user