summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2021-04-25 04:18:41 +0000
committerstkhan <personal@slickd.xyz>2021-04-25 04:18:41 +0000
commit417158d93fc6c0d9c1ac5abf0b608c606cff2396 (patch)
tree7d4d42e30938028d43aa35cc7373b17fcbda2a55 /install.sh
parentb9dae657725ab9f3ab44963f89d924c16810e2c1 (diff)
Added dialog to some parts of the script
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh42
1 files changed, 26 insertions, 16 deletions
diff --git a/install.sh b/install.sh
index e0e8d1a..c85296f 100755
--- a/install.sh
+++ b/install.sh
@@ -1,43 +1,53 @@
#!/bin/sh
+sudo pacman -S --needed dialog
+
# Sets the folder names
dwm="dwm-6.2"
dmenu="dmenu-5.0"
st="st-0.8.2"
dwmblocks="dwmblocks"
paleofetch="paleofetch"
-theme="green"
-echo "Welcome to the sarc installer!"
-
- rm log.txt
- sudo pacman -Sy --needed adobe-source-code-pro-fonts falkon libnotify xorg xorg-xinit light picom feh dunst pulseaudio
-
+dialog --title "sarc" --msgbox "Welcome to the sarc installer!" 0 0
+dialog --title "sarc" --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 dialog wpa_supplicant iw dhcpcd adobe-source-code-pro-fonts falkon libnotify xorg xorg-xinit light picom feh dunst pulseaudio
cd dwm-6.2
- rm config.h
cp ./themes/$theme ./config.h
- sudo make -s install > ../log.txt
+ make
+ sudo make -s install
cd ../$st
- sudo make -s install > ../log.txt
+ make
+ sudo make -s install
cd ../$dmenu
- sudo make -s install > ../log.txt
+ make
+ sudo make -s install
cd ../$dwmblocks
- sudo make -s install > ../log.txt
+ make
+ sudo make -s install
cd ..
+
echo "Copying files"
+
+ mkdir -p ~/.local/bin
+ mkdir ~/.config
+ mkdir ~/.dwm
+
cp ./etc/.xinitrc ~
cp ./etc/$theme.wallpaper.jpg ~/.config/
mv ~/.config/$theme.wallpaper.jpg ~/.config/wallpaper.jpg
- mkdir -p ~/.local/bin
- mkdir ~/.dwm/ > /dev/null
-
cp ./etc/autostart.sh ~/.dwm/
cp ./bin/* ~/.local/bin
-
-
+ dialog --title "sarc" --msgbox "The installation is complete! Type *startx* to launch dwm." 0 0
+ clear