refactor: Move .ff-chrome/ into .include/ dir

This commit is contained in:
Ahmad Ansori Palembani 2024-07-11 04:54:58 +07:00
parent b2c85667e6
commit 8c259f5292
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 5 additions and 2 deletions

View file

@ -53,6 +53,9 @@ Then run `./bootstrap`.
- yabai (macOS) - yabai (macOS)
- [dortania](https://github.com/dortania) (A great hackintosh guide) - [dortania](https://github.com/dortania) (A great hackintosh guide)
## Special directory
- `.include/`: Directory containing configs that need to be installed manually
## Tips ## Tips
### Small guide for my tiling WM hotkeys ### Small guide for my tiling WM hotkeys

View file

@ -69,11 +69,11 @@ chrome_path = pathlib.Path(f"{profile_path}/chrome")
chrome_path.mkdir(parents=True, exist_ok=True) chrome_path.mkdir(parents=True, exist_ok=True)
user_chrome_path = chrome_path / "userChrome.css" user_chrome_path = chrome_path / "userChrome.css"
try: 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: except FileExistsError:
prompt = input("Overwrite existing userChrome.css? [y/N] ") prompt = input("Overwrite existing userChrome.css? [y/N] ")
if not bool_from_string(prompt, False): if not bool_from_string(prompt, False):
exit(0) exit(0)
user_chrome_path.unlink() 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.") print("userChrome.css has successfully installed.")