-
Notifications
You must be signed in to change notification settings - Fork 1
/
setupMyDesktop.py
60 lines (57 loc) · 2.22 KB
/
setupMyDesktop.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import subprocess
apps = [
" polybar",
" i3-wm",
" neovim",
" firefox",
" nitrogen",
" rofi",
" pcmanfm",
"nnn",
"zsh",
"powerline",
"pfetch",
"neofetch",
"alacritty",
]
gitCommands = [
# For termite
#"git clone --recursive https://github.com/thestinger/termite.git ~",
#"cd ~/termite && make && cd",
# Installing JetBrains Mono
'/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/JetBrains/JetBrainsMono/master/install_manual.sh)"'
# For vim-plug
"curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim",
# For downloading and placing my config files
"git clone https://github.com/Ganther3301/config.git ~",
"cd ~/config",
"cp -r i3 i3blocks nvim polybar alacritty qtile termite ~/.config",
# Setting up zsh
# "curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh",
# 'mkdir -p "$HOME/.zsh"',
# 'git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"',
# 'git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1',
# 'ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"',
# 'sudo git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions',
# 'sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting',
# 'cp ~/config/.zshrc ~',
# Installing my st
'git clone https://github.com/Ganther3301/st.git ~',
'cd ~/st && rm -rf config.h && sudo make clean install'
]
invalid = True
while invalid:
pkg = input("Which operating system, Debian or Arch?[d/a]")
if pkg == "d" or pkg == "D":
invalid = False
for i in apps:
subprocess.run("sudo apt-get install "+i, shell=True)
elif pkg == "a" or pkg == "A":
invalid = False
for i in apps:
subprocess.run("sudo pacman -S "+i+" --noconfirm", shell=True)
else:
print("Enter valid option")
for i in gitCommands:
subprocess.run(i, shell=True)