diff --git a/install-sway.sh b/install-sway.sh new file mode 100644 index 0000000000000000000000000000000000000000..b08978251da2196b272b201f3890b672b5698b7c --- /dev/null +++ b/install-sway.sh @@ -0,0 +1,3 @@ +mkdir ~/.config/sway && mkdir ~/.config/foot + +cp sway/config ~/.config/sway/ && cp foot/foot.ini ~/.config/foot/ \ No newline at end of file diff --git a/setup.sh b/setup.sh index e77db4a4c75466923a02fa052c17510299950e55..ff8ca7dc6fbde09378052581c9d84c66178730ca 100755 --- a/setup.sh +++ b/setup.sh @@ -14,17 +14,28 @@ if [ "$distro" == "Debian" ]; then if [ "$yn" == 'y' ]; then # dwm depedencies sudo apt install build-essential libx11-dev libxft-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev\ - xbacklight alsa-utils + 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 + apt install sway brightnessctl + #install bemenu + git clone https://github.com/Cloudef/bemenu && cd bemenu && make && make install && cd .. && rm bemenu + ./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 xss-lock slock xbacklight neofetch ranger htop + 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)' @@ -47,7 +58,51 @@ if [ "$distro" == "Debian" ]; then elif [ "$distro" == "Arch" ]; then sudo pacman -Sy - sudo pacman -S base-devel libx11 libxft libxinerama freetype2 fontconfig + + 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'