-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.py
executable file
·42 lines (38 loc) · 1010 Bytes
/
install.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from os import system
from sys import argv
config_destinations = {
".gitconfig": "~/",
".xinitrc": "~/",
".zshrc": "~/",
".gtkrc-2.0": "~/",
".tmux.conf": "~/",
".p10k.zsh": "~/",
"dunst": "~/.config/",
"gpg-agent.conf": "~/.gnupg/",
"gtk-3.0": "~/.config/",
"gtk-4.0": "~/.config/",
"htop": "~/.config/",
"i3": "~/.config/",
"nvim": "~/.config/",
"picom": "~/.config/",
"polybar": "~/.config/",
"alacritty": "~/.config/",
"zathura": "~/.config/",
"feh": "~/.config/",
"rofi": "~/.config/",
"qt5ct": "~/.config/",
"layout.service": "~/.config/systemd/user/",
}
server_part = [
".zshrc",
".tmux.conf",
".p10k.zsh",
"nvim",
"htop",
]
for config, path in config_destinations.items():
if len(argv) > 1 and argv[1] == "--server" and config not in server_part:
continue
system(f"rm -r {path}{config}")
system(f"ln -s $PWD/{config} {path}{config}")
print(f"installed: {path}{config}")