#!/bin/sh sudo pacman -S --needed dialog # Sets the folder names dwm="dwm-6.2" dmenu="dmenu-5.0" st="st" dwmblocks="dwmblocks" dialog --title "sarc stable" --msgbox "Welcome to the sarc installer!" 0 0 dialog --title "sarc stable" --inputbox "What theme would you like? Choose from green, blue, and red" 0 0 2> /tmp/.theme_sel clear theme="$(cat /tmp/.theme_sel)" echo "Your theme is $theme" sudo pacman -Sy --needed webkit2gtk dialog wpa_supplicant iw dhcpcd adobe-source-code-pro-fonts falkon libnotify xorg xorg-xinit light picom feh dunst pulseaudio echo "Setting up config folders" mkdir -p ~/.config/sarc cp -r * ~/.config/sarc/ cd ~/.config/sarc/ cd $dwm cp ./themes/$theme ./config.h make sudo make -s install cd ../$st make sudo make -s install cd ../$dmenu make sudo make -s install cd ../$dwmblocks make sudo make -s install cd .. echo "Copying files" mkdir ~/.dwm sudo cp etc/ns.conf /etc etc/cursor cp ./etc/.xinitrc ~ cp ./etc/$theme.wallpaper.jpg ~/.config/ mv ~/.config/$theme.wallpaper.jpg ~/.config/wallpaper.jpg cp ./etc/autostart.sh ~/.dwm/ sudo cp ./bin/* /usr/local/bin dialog --title "sarc" --msgbox "The installation is complete! Type *startx* to launch dwm." 0 0 clear