get-chadwm
This commit is contained in:
parent
7f84bf90ba
commit
5f62eb6e88
2 changed files with 105 additions and 0 deletions
104
archiso/airootfs/usr/local/bin/get-chadwm
Executable file
104
archiso/airootfs/usr/local/bin/get-chadwm
Executable file
|
@ -0,0 +1,104 @@
|
|||
#!/bin/bash
|
||||
#set -e
|
||||
##################################################################################################################
|
||||
# Author : Erik Dubois
|
||||
# Website : https://www.erikdubois.be
|
||||
# Website : https://www.alci.online
|
||||
# Website : https://www.ariser.eu
|
||||
# Website : https://www.arcolinux.info
|
||||
# Website : https://www.arcolinux.com
|
||||
# Website : https://www.arcolinuxd.com
|
||||
# Website : https://www.arcolinuxb.com
|
||||
# Website : https://www.arcolinuxiso.com
|
||||
# Website : https://www.arcolinuxforum.com
|
||||
##################################################################################################################
|
||||
#
|
||||
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
|
||||
#
|
||||
##################################################################################################################
|
||||
#tput setaf 0 = black
|
||||
#tput setaf 1 = red
|
||||
#tput setaf 2 = green
|
||||
#tput setaf 3 = yellow
|
||||
#tput setaf 4 = dark blue
|
||||
#tput setaf 5 = purple
|
||||
#tput setaf 6 = cyan
|
||||
#tput setaf 7 = gray
|
||||
#tput setaf 8 = light blue
|
||||
##################################################################################################################
|
||||
|
||||
installed_dir=$(dirname $(readlink -f $(basename `pwd`)))
|
||||
|
||||
##################################################################################################################
|
||||
|
||||
func_install() {
|
||||
if pacman -Qi $1 &> /dev/null; then
|
||||
tput setaf 2
|
||||
echo "###############################################################################"
|
||||
echo "################## The package "$1" is already installed"
|
||||
echo "###############################################################################"
|
||||
echo
|
||||
tput sgr0
|
||||
else
|
||||
tput setaf 3
|
||||
echo "###############################################################################"
|
||||
echo "################## Installing package " $1
|
||||
echo "###############################################################################"
|
||||
echo
|
||||
tput sgr0
|
||||
sudo pacman -S --noconfirm --needed $1
|
||||
fi
|
||||
}
|
||||
|
||||
func_install_chadwm() {
|
||||
|
||||
echo
|
||||
tput setaf 2
|
||||
echo "################################################################"
|
||||
echo "################### Install chadwm"
|
||||
echo "################################################################"
|
||||
tput sgr0
|
||||
echo
|
||||
|
||||
list=(
|
||||
alacritty
|
||||
archlinux-logout-git
|
||||
arcolinux-chadwm-git
|
||||
dash
|
||||
dmenu
|
||||
eww
|
||||
feh
|
||||
lxappearance
|
||||
picom
|
||||
polkit-gnome
|
||||
rofi
|
||||
scrot
|
||||
sxhkd
|
||||
thunar
|
||||
thunar-archive-plugin
|
||||
thunar-volman
|
||||
ttf-hack
|
||||
ttf-jetbrains-mono-nerd
|
||||
ttf-meslo-nerd-font-powerlevel10k
|
||||
volumeicon
|
||||
xfce4-notifyd
|
||||
xfce4-power-manager
|
||||
xfce4-screenshooter
|
||||
xfce4-settings
|
||||
xfce4-taskmanager
|
||||
xfce4-terminal
|
||||
)
|
||||
|
||||
count=0
|
||||
|
||||
for name in "${list[@]}" ; do
|
||||
count=$[count+1]
|
||||
tput setaf 3;echo "Installing package nr. "$count " " $name;tput sgr0;
|
||||
func_install $name
|
||||
done
|
||||
}
|
||||
|
||||
func_install_chadwm
|
||||
|
||||
cp -Rf ~/.config ~/.config-backup-$(date +%Y.%m.%d-%H.%M.%S)
|
||||
cp -arf /etc/skel/. ~
|
|
@ -30,4 +30,5 @@ file_permissions=(
|
|||
["/usr/local/bin/alci-displaymanager-check"]="0:0:755"
|
||||
["/usr/local/bin/get-nemesis-on-alci"]="0:0:755"
|
||||
["/usr/local/bin/fix-keys"]="0:0:755"
|
||||
["/usr/local/bin/get-chadwm"]="0:0:755"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue