-
Notifications
You must be signed in to change notification settings - Fork 0
/
Arch-Setup.sh
executable file
·91 lines (76 loc) · 2.74 KB
/
Arch-Setup.sh
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/sh
printf " Do you want to install the PKGs? "
read PKG_INPUT
printf " Do you want to Download the Video Production apps? "
read VID_INPUT
printf " Do you want to install and Set up Virt-manager? "
read VIRT_INPUT
printf " Do you want to install and Set up dotfiles git bare repo? "
read DOTFILES_INPUT
printf " Do you want to install and Set up Zsh? "
read ZSH_INPUT
if [ $PKG_INPUT = "y" ]
then
printf "\n\t #### Downloading PKGs ####\n\n"
yay -S rofi awesome kitty neovim materia-gtk-theme lxappearance picom nitrogen \
volumeicon-alsa network-manager-applet exa flameshot vifm parcellite blueman \
xfce4-notifyd xfce4-power-manager pavucontrol cmatrix htop auto-cpufreq \
speedtest-cli acpi_call bbswitch zsh-syntax-highlighting autojump \
zsh-autosuggestions papirus-icon-theme playerctl ibus chsh ttf-joypixels ttf-all-the-icons
else
printf " Canceled The Downloads\n"
fi
if [ $VID_INPUT = "y" ]
then
printf " Downloading PKGs\n"
yay -S kdenlive obs-studio
else
printf " Canceled The Downloads\n"
fi
# virt-manager
printf "\n\t #### Downloading and Setting up Virt-manager ####\n\n"
if [ $VIRT_INPUT = "y" ]
then
yay -S qemu virt-manager ebtables dnsmasq
sudo systemctl start libvirtd.service virtlogd.service
sudo systemctl enable libvirtd.service
sudo usermod -G libvirt -a ahmed
else
printf " Canceled download for Virt-manager"
fi
### My dotfiles git bare repo
if [ $DOTFILES_INPUT = "y" ]
then
printf " Cloning and Setting up dotfiles in the home dir\n"
git clone https://github.com/Ahmed-Al-Balochi/dotfiles.git ~/Downloads/dotfiles.git
cp -rf ~/Downloads/dotfiles.git/.* ~/
printf "Cloning Git bare repo"
git clone --bare https://github.com/Ahmed-Al-Balochi/dotfiles.git ~/bareDotfiles
cd ~/bareDotfiles
printf "Setting up Git bare repo"
config config --local status.showUntrackedFiles no
config add .bashrc .zshrc .config/awesome .config/alacritty \
.config/bspwm .config/kitty .config/nitrogen .config/picom \
.config/picom .config/polybar .config/qtile .config/rofi \
.config/sxhkd .local/bin/Arch-Mypkgs.sh \
.local/bin/Fedora-Mypkgs.sh .local/bin/Ubuntu-Mypkgs.sh \
.local/bin/BSPWM-install.sh .local/bin/BSPWM-package-list.txt \
.local/bin/IosevkaTermNerdFontComplete.ttf .config/obs-studio \
README.md LICENSE
else
printf " Canceled the git bare repo\n"
fi
### Zsh
printf "\n\t #### Downloading and Setting up Zsh ####\n\n"
if [ $ZSH_INPUT = "y" ]
then
printf " Setting Zsh\n"
touch "$HOME/.cache/zshhistory"
#-- Setup Alias in $HOME/zsh/aliasrc
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >> ~/.zshrc
chsh
echo "You should Reboot Now"
else
printf " Canceled Setting up Zsh\n"
fi