-
CALIN Alexis authoredCALIN Alexis authored
setup.sh 3.13 KiB
#!/bin/bash
# A implementer : setup de wireplumber and automate the things to install after minimal debian install
# Tweak dwm to show cpu temp
echo "What GNU/Linux distribution are you using ? Enter 'Debian' or 'Arch'"
read distro
if [ "$distro" == "Debian" ]; then
echo 'Updating apt repositories'
sudo apt update
echo 'Install and setup DWM ? y or n'
read yn
if [ "$yn" == 'y' ]; then
# dwm depedencies
sudo apt install build-essential libx11-dev libxft-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev\
xbacklight alsa-utils xss-lock slock
./install-dwm.sh
./fix-screen-tearing.sh
fi
echo 'Install and setup Sway ? y or n'
read yn
if [ "$yn" == 'y' ]; then
# dwm depedencies
sudo apt install sway brightnessctl
#install bemenu
git clone https://github.com/Cloudef/bemenu && cd bemenu && make && sudo make install && cd .. && sudo rm -rf bemenu
chmod +x install-sway.sh
./install-sway.sh
fi
echo 'Install recommended programs ? y or n'
read yn
if [ "$yn" == 'y' ]; then
# programs
sudo apt install network-manager chromium newsboat thunderbird libreoffice pandoc texlive-full neofetch htop
sudo apt purge gnome-games
sudo systemctl enable --now NetworkManager && echo 'Enabled Network Manager'
echo 'Install VScode ? (y or n)'
read yn
if [ "$yn" == 'y' ]; then
# vscode
curl https://go.microsoft.com/fwlink/?LinkID=760868 && sudo apt install ./code*.deb
fi
echo 'Install Mullvad vpn ? (y or n)'
read yn
if [ "$yn" == 'y' ]; then
# vscode
curl https://mullvad.net/download/app/deb/latest/ && sudo apt install ./Mullvad*.deb && sudo systemctl enable --now mullvad-daemon
fi
fi
elif [ "$distro" == "Arch" ]; then
sudo pacman -Sy
echo 'Install and setup DWM ? y or n'
read yn
if [ "$yn" == 'y' ]; then
# dwm depedencies
sudo pacman -S base-devel libx11 libxft libxinerama freetype2 fontconfig
xorg-xbacklight alsa-utils
./install-dwm.sh
./fix-screen-tearing.sh
fi
echo 'Install and setup Sway ? y or n'
read yn
if [ "$yn" == 'y' ]; then
# dwm depedencies
sudo pacman -S sway bemenu brightnessctl
./install-sway.sh
fi
echo 'Install recommended programs ? y or n'
read yn
if [ "$yn" == 'y' ]; then
# programs
pacman -S networkmanager chromium newsboat thunderbird libreoffice pandoc texlive-most neofetch htop
sudo systemctl enable --now NetworkManager && echo 'Enabled Network Manager'
echo 'Install VScode ? (y or n)'
read yn
if [ "$yn" == 'y' ]; then
# vscode
yay -S visual-studio-code-bin
fi
echo 'Install Mullvad vpn ? (y or n)'
read yn
if [ "$yn" == 'y' ]; then
# vscode
yay -S mullvad-vpn && sudo systemctl enable --now mullvad-daemon.service
fi
fi
else
echo 'Non recognized distribution'
echo 'Quitting'
fi