remove old files and update script and pkglist

This commit is contained in:
Cameron Miller 2021-12-02 18:07:54 +00:00
parent 245da1e59f
commit 957bfc6258
4 changed files with 4 additions and 85 deletions

View File

@ -184,7 +184,7 @@ All packages listed are either in the standard Arch Repos or in my CBSH repos. t
#+begin_src bash
# Let's install all of the packages listed in the pkglist.txt file.
sudo pacman --needed --ask 4 -Sy - < pkglist.txt
sudo pacman --needed --ask 4 -Syu - < pkglist.txt
#+end_src
* Copying over the configs from /etc/cbsh to $HOME
@ -200,7 +200,7 @@ echo "#########################################################"
[ -d /etc/cbsh ] && mkdir ~/cbsh-backup-$(date +%Y.%m.%d-%H%M) && cp -Rf /etc/cbsh ~/cbsh-backup-$(date +%Y.%m.%d-%H%M)
[ ! -d ~/.config ] && mkdir ~/.config
[ -d ~/.config ] && mkdir ~/.config-$(date +%Y.%m.%d-%H%M) && cp -Rf ~/.config ~/.config-backup-$(date +%Y.%m.%d-%H%M)
cd /etc/dtos && sudo mv -r .config/qtile/qtile .config/qtile && cp -Rf . ~ && cd -
cd /etc/cbsh && sudo mv .config/qtile/qtile .config/qtile && cp -Rf . ~ && cd -
#+end_src
#+begin_src bash

38
cbsh
View File

@ -1,38 +0,0 @@
#!/usr/bin/env bash
# ____ ____ ____ _ _
# / ___|| __ )/ ___| | | | |
# | | | _ \\___ \ | |_| |
# | |___ | |_) |___) || _ |
# \____||____/|____/ |_| |_|
#
# NAME: CBSH -- ARCH
# DESC: An installation and deployment script that installs Cabooshy's Desktop on Arch Linux and Arch based Distro's
# WARNING: Run this script at your own risk.
# DEPENDENCIES: dialog
if [ "$(id -u)" = 0 ]; then
echo "#######################################################################"
echo "This script MUST NOT be run as root user since it makes changes to the"
echo "\$HOME directory of the \$USER executing this script. We dont want"
echo "those to be 'root' and '/root',We don't want to mess around in there"
echo "and potentially break something, So run this script as a normal user."
echo "You will be asked for a sudo password when necessary."
echo "######################################################################"
exit 1
fi
err() { \
clear; printf "ERR:\\n%s\\n" "$1" >&2; exit 1;
}
echo "########################################################################"
echo "###### Syncing the Repos and installing 'dialog' if not installed ######"
echo "########################################################################"
sudo pacman --noconfirm --needed -Syu dialog || error "Error syncing the repos."
welcome () { \
dialog --colors --title "\Z7\ZbInstalling CBSH!" --msgbox "\Z4This Postinstall Script will install my Qtile Desktop as well as Doom Emacs, Zsh with the Starship Prompt, the Kitty Shell and some other essential programs to make my dotfiles and programs work.\\n\\n-Cabooshy" 16 60
dialog --colors --title "\Z7\ZbStay Near your PC!" --yes-label "Continue" --no-label "Exit" --yesno "\Z4This script cannot be run as root, but when needed you will be asked for your sudo password during the installation. This will give PACMAN the necessary permissions to install the software needed. So stay near the computer" 10 60
}
welcome || err "User choose to exit."

View File

@ -1,43 +0,0 @@
#!/usr/bin/env bash
# ____ ____ ____ _ _
# / ___|| __ )/ ___| | | | |
# | | | _ \\___ \ | |_| |
# | |___ | |_) |___) || _ |
# \____||____/|____/ |_| |_|
#
# NAME: CBSH -- ARCH
# DESC: An installation and deployment script that installs Cabooshy's Desktop on Arch Linux and Arch based Distro's
# WARNING: Run this script at your own risk.
# DEPENDENCIES: dialog
if [ "$(id -u)" = 0 ]; then
echo "#######################################################################"
echo "This script MUST NOT be run as root user since it makes changes to the"
echo "\$HOME directory of the \$USER executing this script. We dont want"
echo "those to be 'root' and '/root',We don't want to mess around in there"
echo "and potentially break something, So run this script as a normal user."
echo "You will be asked for a sudo password when necessary."
echo "######################################################################"
exit 1
fi
err() { \
clear; printf "ERR:\\n%s\\n" "$1" >&2; exit 1;
}
echo "########################################################################"
echo "###### Syncing the Repos and installing 'dialog' if not installed ######"
echo "########################################################################"
sudo pacman --noconfirm --needed -Syu dialog || error "Error syncing the repos."
echo "######################################"
echo "###### Syncing the AUR As Well. ######"
echo "######################################"
yay -Syu
welcome () { \
dialog --colors --title "\Z7\ZbInstalling CBSH!" --msgbox "\Z4This Postinstall Script will install my Qtile Desktop as well as Doom Emacs, Zsh with the Starship Prompt, the Kitty Shell and some other essential programs to make my dotfiles and programs work.\\n\\n-Cabooshy" 16 60
dialog --colors --title "\Z7\ZbStay Near your PC!" --yes-label "Continue" --no-label "Exit" --yesno "\Z4This script cannot be run as root, but when needed you will be asked for your sudo password during the installation. This will give PACMAN the necessary permissions to install the software needed. So stay near the computer" 10 60
}
welcome || err "User choose to exit."

View File

@ -14,6 +14,7 @@ zsh-cbsh
emacs
exa
fd
neofetch
fish
zsh
git
@ -22,6 +23,7 @@ lolcat
lxappearance
lxsession
mpv
networkmanager
network-manager-applet
pacman-contrib
pcmanfm
@ -44,7 +46,5 @@ xf86-video-intel
vim
dunst
xdotool
xev
volumeicon
qtile
element-desktop