-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
34 lines (29 loc) · 2.81 KB
/
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
# Confirmation
read -p "Do you want to install this configuration now? (y/n) " prompt
case $prompt in
[Yy] ) echo "Installing.." ;;
[Nn] ) exit ;;
* ) echo "Invalid choice."
exit ;;
esac
# Install packages
bash -c 'sudo pacman -S --noconfirm xmonad xmonad-contrib alacritty xterm wget dmenu xf86-input-libinput alsa-utils xmobar neofetch htop ncdu vim nano xorg xorg-xinit p7zip flameshot pulseaudio-alsa pulseaudio-bluetooth pamixer tlp youtube-dl ranger cmus nitrogen firefox krita xdotool gimp mpv vlc audacity discord libreoffice-still ttc-iosevka ttc-iosevka-aile ttc-iosevka-curly ttf-bitstream-vera ttf-font ttf-nerd-fonts-symbols-mono'
bash -c 'yay -S --noconfirm --mflags --skipinteg --answerclean All --answerdiff All --answeredit All --answerupgrade Repo tlpui-git spotify picom-jonaburg-git github-desktop-bin mirage libinput-gestures sublime-text-4'
# Make directories
[[ -d ~/.xmonad ]] && echo "~/.xmonad already exists." || (echo "Creating ~/.xmonad directory.." && bash -c 'mkdir ~/.xmonad')
[[ -d ~/.xmobarrc ]] && echo "~/.xmobarrc already exists." || (echo "Creating ~/.xmobarrc directory.." && bash -c 'mkdir ~/.xmobarrc')
[[ -d ~/.config/alacritty ]] && echo "~/.config/alacritty already exists." || (echo "Creating ~/.config/alacritty directory.." && bash -c 'mkdir -p ~/.config/alacritty')
[[ -d ~/.config/xmonad/ ]] && echo "~/.config/xmonad/ already exists." || (echo "Creating ~/.config/xmonad/ directory.." && bash -c 'mkdir -p ~/.config/xmonad/scripts')
[[ -d ~/.config/picom ]] && echo "~/.config/picom already exists." || (echo "Creating ~/.config/picom directory.." && bash -c 'mkdir ~/.config/picom')
[[ -d ~/.config/neofetch ]] && echo "~/.config/neofetch already exists." || (echo "Creating ~/.config/neofetch directory.." && bash -c 'mkdir ~/.config/neofetch')
# Move configs and files to directories
echo "Copying xmonad.hs to ~/.xmonad/" && bash -c 'cp xmonad.hs ~/.xmonad/'
echo "Copying xmobar.hs to ~/.xmobarrc/" && bash -c 'cp xmobar.hs ~/.xmobarrc/'
echo "Copying alacritty.yml to ~/.config/alacritty/" && bash -c 'cp config/alacritty.yml ~/.config/alacritty/'
echo "Copying help to ~/.config/xmonad/" && bash -c 'cp files/help ~/.config/xmonad/'
echo "Copying picom.conf to ~/.config/picom/" && bash -c 'cp config/picom.conf ~/.config/picom/'
echo "Copying neofetch_config.conf to ~/.config/neofetch/config.conf" && bash -c 'cp config/neofetch_config.conf ~/.config/neofetch/config.conf'
echo "Copying archlinux.txt to ~/.config/neofetch/" && bash -c 'cp files/archlinux.txt ~/.config/neofetch/'
echo "Copying startup_window.sh to ~/.config/xmonad/scripts/" && bash -c 'cp config/shell/startup_window.sh ~/.config/xmonad/scripts/'
# Add execution permissions to shell scripts
echo "Adding execution permissions to scripts.." && bash -c 'chmod +x ~/.config/xmonad/scripts/startup_window.sh'