moved v1 folder
This commit is contained in:
119
v1/1200-arch-chadwm.sh
Executable file
119
v1/1200-arch-chadwm.sh
Executable file
@@ -0,0 +1,119 @@
|
||||
#!/bin/bash
|
||||
#set -e
|
||||
##################################################################################################################################
|
||||
#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`)))
|
||||
|
||||
##################################################################################################################################
|
||||
|
||||
if [ "$DEBUG" = true ]; then
|
||||
echo
|
||||
echo "------------------------------------------------------------"
|
||||
echo "Running $(basename $0)"
|
||||
echo "------------------------------------------------------------"
|
||||
echo
|
||||
read -n 1 -s -r -p "Debug mode is on. Press any key to continue..."
|
||||
echo
|
||||
fi
|
||||
|
||||
##################################################################################################################################
|
||||
|
||||
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
|
||||
edu-chadwm-git
|
||||
autorandr
|
||||
dash
|
||||
dmenu
|
||||
eww
|
||||
feh
|
||||
gcc
|
||||
gvfs
|
||||
lolcat
|
||||
lxappearance-gtk3
|
||||
make
|
||||
picom
|
||||
polkit-gnome
|
||||
rofi-lbonn-wayland
|
||||
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
|
||||
xorg-xsetroot
|
||||
)
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
echo
|
||||
tput setaf 2
|
||||
echo "########################################################################"
|
||||
echo "################### Let us install Chadwm"
|
||||
echo "########################################################################"
|
||||
tput sgr0
|
||||
echo
|
||||
|
||||
func_install_chadwm
|
||||
|
||||
echo
|
||||
tput setaf 6
|
||||
echo "##############################################################"
|
||||
echo "################### $(basename $0) done"
|
||||
echo "##############################################################"
|
||||
tput sgr0
|
||||
echo
|
||||
Reference in New Issue
Block a user