carbs

Cem's Auto Rice Bootstrapping Scripts
git clone git://git.ckyln.com/carbs.git
Log | Files | Refs | README | LICENSE

commit 4f7cb40ecdca61afdac1751fe0e3eba9c831f443
parent 6805ae56829adeb0d330502b9debfbde78e0eeff
Author: Cem Keylan <warc1998@gmail.com>
Date:   Thu, 30 May 2019 02:13:06 +0300

Using Arch now

Diffstat:
Mcarbs | 34+++++++++++++++++++++++++++-------
1 file changed, 27 insertions(+), 7 deletions(-)

diff --git a/carbs b/carbs @@ -1,9 +1,10 @@ #!/bin/bash #Default Values -export WALLPAPER=TRUE -export I3=TRUE -export EXECUTE=FALSE +export WALLPAPER=${WALLPAPER-TRUE} +export I3=${I3-TRUE} +export EXECUTE=${EXECUTE-FALSE} +export DM=${DM-FALSE} case $1 in --dry-run) @@ -32,10 +33,14 @@ ORANGE='\033[0;33m' NC='\033[0m' # No Color while : do + if [ $EXECUTE = TRUE ] + then + break + fi clear printf "${BLUE}==================================================\n=== ====== ===== === ===== ==\n== === ==== ==== ==== == === === ==== =\n= ========= == === ==== == ==== == ==== =\n= ======== ==== == === == === ==== ======\n= ======== ==== == ==== ======= ====\n= ======== == ==== == === ======== ==\n= ======== ==== == ==== == ==== == ==== =\n== === == ==== == ==== == === === ==== =\n=== === ==== == ==== == ===== ==\n==================================================\n" printf "${BLUE}Welcome to Cem's Auto Rice Bootsrapper Script!\n\nPlease make sure -that this is a brand new installation of Manjaro\n\n\nHere are your options:\n\n" +that this is a brand new installation of Arch Linux\n\n\nHere are your options:\n\n" if [ $(uname -m) != "x86_64" ] then printf "${RED}Warning! Your architechture does not seem to be 64-bit. \nIf you are using an ARM Processor, this script will not work as some of the requirements cannot be built in ARMv8 architechture.\nIf you have 32-bit architechture, installation will be fine, however, there are problems in the way compton works (it doesn't).${BLUE}" @@ -43,6 +48,7 @@ that this is a brand new installation of Manjaro\n\n\nHere are your options:\n\n echo -e "Key Option Current" echo -e " ${YELLOW}w) Default Wallpapers $WALLPAPER" echo -e " ${YELLOW}i) Tiling Desktop $I3" + echo -e " ${YELLOW}d) Display Manager (sddm) $DM" echo -e " ${YELLOW}e) Start Script" echo -e " ${YELLOW}q) Exit Program" printf "\nType your answer: " @@ -64,13 +70,21 @@ that this is a brand new installation of Manjaro\n\n\nHere are your options:\n\n I3=TRUE fi ;; + d) + if [ $DM = TRUE ] + then + DM=FALSE + else + DM=TRUE + fi + ;; e) if [ $WALLPAPER = FALSE ] && [ $I3 = FALSE ] then echo "No option selected, quitting" exit fi - break + EXECUTE=TRUE ;; q) exit @@ -81,6 +95,7 @@ that this is a brand new installation of Manjaro\n\n\nHere are your options:\n\n esac done echo "Setting the installation of wallpapers to $WALLPAPER" >> $CARBHOME/.log +echo "Setting the installation of display manager to $DM" >> $CARBHOME/.log echo "Setting the installation of tiling desktop to $I3" >> $CARBHOME/.log clear echo -e "${GREEN}Starting Script${NC}" | tee -a $CARBHOME/.log @@ -91,9 +106,14 @@ then cd $HOME/Pictures && echo -e "${YELLOW}Downloading Wallpapers" &&\ git clone https://gitlab.cemkeylan.com/cemkeylan/Wallpapers.git && echo -e "${GREEN}Downloaded Wallpapers successfully${NC}" fi +if [ $DM = TRUE ] +then + echo -e "${YELLOW}Installing Simple Display Desktop Mnaager" | tee -a $CARBHOME/.log && sleep 1 + sudo pacman -S sddm && sudo systemctl enable sddm +fi if [ $I3 = TRUE ] then - echo -e "${YELLOW}Installing Mandatory Packages" | tee -a $CARBHOME/.log + echo -e "${YELLOW}Installing Mandatory Packages" | tee -a $CARBHOME/.log && sleep 1 printf "These are:\n* compton\n* feh (wallpaper handler)\n* polybar\n* mpd (music player daemon)\n* xorg-xbacklight (screen brightness controller\n* material icons (bar icons)\n* i3-gaps tiling window manager\n\n" if [ $TEST = 0 ] then @@ -111,7 +131,7 @@ then sudo pacman -R i3-wm fi yay -T clipit ttf-material-icons-git | yay -S - - sudo $pacman i3-gaps polkit-gnome ttf-bitstream-vera ttf-dejavu ttf-droid ttf-inconsolata ttf-indic-otf ttf-liberation nextcloud-client entr xautolock i3lock compton terminator feh mpd xorg-xbacklight | sudo pacman -S - && yay -T polybar | yay -S - && echo -e "${GREEN}Installed Mandatory Packages" | tee -a $CARBHOME/.log + sudo $pacman i3-gaps polkit-gnome ttf-bitstream-vera ttf-dejavu ttf-droid ttf-inconsolata ttf-indic-otf ttf-liberation entr xautolock i3lock compton terminator feh mpd xorg-xbacklight | sudo pacman -S - && yay -T polybar | yay -S - && echo -e "${GREEN}Installed Mandatory Packages" | tee -a $CARBHOME/.log sleep 2 printf "Downloading configuration files\n" | tee -a $CARBHOME/.log cd $CARBHOME && git clone https://gitlab.cemkeylan.com/cemkeylan/dotfiles.git && cd $CARBHOME/dotfiles && mkdir -p $HOME/.config/i3 && mkdir -p $HOME/.config/polybar && mkdir -p $HOME/.config/terminator &&\