How Restore config will work. #12
Replies: 4 comments 19 replies
-
hey i think this needs to be updated... |
Beta Was this translation helpful? Give feedback.
-
ops this is outdated.
|
Beta Was this translation helpful? Give feedback.
-
yeah i do
i can technically edit
i basically want to keep my configs consistent with rolling updates |
Beta Was this translation helpful? Give feedback.
-
Hey thanks for all of that but should i be editing |
Beta Was this translation helpful? Give feedback.
-
Okay, I decided something. This restore file will be inside
~/.config/hyprdots-ctl/
(I will move some config files to this directory too so that it will be Isolated from the ~/.config/hypr directory )First, we need to realize these 3 directories
Now flags are used to determine what you do to the files:
O for overwrite so this one is it moves the target files/directory to the backup directory and then copies the Clone Directory files to the target directory. This will effectively overwrite the files and now your current files will be in the backup
P or any flag for populate, so this one if not declared will do something like copy Clone configs to the Target if only the files on the Target files do not exist. This is helpful for Fresh installations.
B is for Backup so this will just recursively backup your configs. So target files will be copied to the backup directory nothing else
S stands for Sync so this flag copies your target directory to backup, then
cp -rf
/copies the Clone directory to the target directory. Now S flags are still guaranteed to overwrite some of the configs but will not overwrite the entire directory only the ones that have the same filename. Effectively leaving your changes intact(for example You have modules on your waybar or user wallpapers in the swww folder )** I ** flags will only be ignored and skipped so that we can have a more declarative approach Having this will break some functionality. But maybe useful. Same as just deleting the whole line.
Of course, this will be integrated with these commands
Beta Was this translation helpful? Give feedback.
All reactions