From 8c259f52920a098e162c49b9c6275284b4737168 Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Thu, 11 Jul 2024 04:54:58 +0700 Subject: [PATCH] refactor: Move .ff-chrome/ into .include/ dir --- {.ff-chrome => .include/ff-chrome}/userChrome.css | 0 README.md | 3 +++ user-chrome-setup.py | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) rename {.ff-chrome => .include/ff-chrome}/userChrome.css (100%) diff --git a/.ff-chrome/userChrome.css b/.include/ff-chrome/userChrome.css similarity index 100% rename from .ff-chrome/userChrome.css rename to .include/ff-chrome/userChrome.css diff --git a/README.md b/README.md index 82d640e..ab87b72 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,9 @@ Then run `./bootstrap`. - yabai (macOS) - [dortania](https://github.com/dortania) (A great hackintosh guide) +## Special directory +- `.include/`: Directory containing configs that need to be installed manually + ## Tips ### Small guide for my tiling WM hotkeys diff --git a/user-chrome-setup.py b/user-chrome-setup.py index b4b3228..25e6db8 100755 --- a/user-chrome-setup.py +++ b/user-chrome-setup.py @@ -69,11 +69,11 @@ chrome_path = pathlib.Path(f"{profile_path}/chrome") chrome_path.mkdir(parents=True, exist_ok=True) user_chrome_path = chrome_path / "userChrome.css" try: - user_chrome_path.symlink_to(f"{dotfiles}/.ff-chrome/userChrome.css") + user_chrome_path.symlink_to(f"{dotfiles}/.include/ff-chrome/userChrome.css") except FileExistsError: prompt = input("Overwrite existing userChrome.css? [y/N] ") if not bool_from_string(prompt, False): exit(0) user_chrome_path.unlink() - user_chrome_path.symlink_to(f"{dotfiles}/.ff-chrome/userChrome.css") + user_chrome_path.symlink_to(f"{dotfiles}/.include/ff-chrome/userChrome.css") print("userChrome.css has successfully installed.")