diff options
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 96 |
1 files changed, 42 insertions, 54 deletions
@@ -1,57 +1,45 @@ -#!/bin/sh +#!/usr/bin/bash -sudo pacman -S --needed dialog - -# Sets the folder names +# Sets variables here 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 +dmenu="dmenu-5.0" + +echo "Welcome to the sarc installation" +echo "" + +echo "What theme do you want to use? Current themes are down below:" +echo +ls themes/themes/ +echo "Enter what theme you want here:" && read theme +echo +echo "Theme is $theme" +pwd +rm ./themes/theme.h +cp themes/themes/$theme themes/theme.h + +cd $dwm +rm config.h +make clean +make +sudo make install + +cd ../$st +make +sudo make install + +cd ../$dmenu +make +sudo make install + +cd .. +mkdir -p ~/.config/sarc +mkdir ~/.dwm/ +cp -r * ~/.config/sarc/ +cp etc/.xinitrc ~ +etc/cursor +cp etc/$theme.wallpaper.jpg ~/.config/wallpaper.jpg + +cp etc/autostart.sh ~/.dwm +sudo cp bin/* /usr/local/bin + |