More
This commit is contained in:
22
setup_user.py
Normal file
22
setup_user.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import os
|
||||
from utils import choice_files, copy_with_structure, CYAN, RESET
|
||||
|
||||
|
||||
SRC_DIR = "home"
|
||||
HOME_DIR = os.path.expanduser("~")
|
||||
CHOICES = {
|
||||
'.config/hypr/monitors.conf': [
|
||||
'.config/hypr/monitors-1.conf',
|
||||
'.config/hypr/monitors-2.conf'
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
def main():
|
||||
override_all = input(f"{CYAN}Override all existing files for user (mainly .config)? (Y/N): {RESET}").strip().lower() == 'y'
|
||||
choice_files(SRC_DIR, HOME_DIR, CHOICES, override_all)
|
||||
copy_with_structure(SRC_DIR, HOME_DIR, override_all)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user