Reorganised the scripts because they were too complicated, need to add the instalation of I3

master
key 2 years ago
parent 2a2849c5bb
commit e1aaa77130

@ -1,12 +1,16 @@
#!/bin/bash
ALACRITTY_SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
alacritty_req_list_debian=(cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev)
alacritty_req_list_arch=(cmake pkg-config)
alacritty_req_list_raspberry=(cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev)
# Define the demendencies for each os that i actively use
alacritty_dependencies_debian=(cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev)
alacritty_dependencies_arch=(cmake pkg-config)
alacritty_dependencies_raspberry=(cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev)
#Alacritty Source file location, in this case Github
alacritty_source="https://github.com/alacritty/alacritty.git"
#Set the font size for Alacritty, this will be changed on the config file directly
alacritty_set_font_size()
{
cd $USER_DOTFILE_DIR/alacritty/
@ -15,6 +19,7 @@ alacritty_set_font_size()
sed -i -e "s/size: ../size: $alafontSize/g" alacritty.yml
}
#Set the opacity for Alacritty, this will be changed on the config file directly
alacritty_set_opacity()
{
cd $USER_DOTFILE_DIR/alacritty/
@ -23,6 +28,7 @@ alacritty_set_opacity()
sed -i -e "s/opacity: .../opacity: $alaopacity/g" alacritty.yml
}
# Runst must be installed to compile the source code
alacritty_install_rust()
{
cd $ALACRITTY_SCRIPT_DIR
@ -30,43 +36,55 @@ alacritty_install_rust()
source $HOME/.cargo/env
}
# The most important part The core of Allacritty will be installed (compiled wiht rust)
# and executable will be put in /bin so that Launcher can index it (plus logo)
alacritty_install_core()
{
cd $ALACRITTY_SCRIPT_DIR
#calling function to install rust
alacritty_install_rust
#clone the git repo.
git clone $alacritty_source
# goint into the repo
cd alacritty/
echo "Build Flags : --release -j$CPU_CORE_COUNT"
# Building alacritty wiht rust an the right amount of core for the compilation
cargo build --release -j$CPU_CORE_COUNT
# Maving executable into /bin
sudo cp target/release/alacritty /usr/local/bin
# Making sure that the logo is transfared as wel
sudo cp extra/logo/alacritty-term.svg /usr/share/pixmaps/Alacritty.svg
cd ..
sudo rm -r alacritty/
}
install_alacritty()
{
graphics_install_prompt "Allacritty Will be installed"
graphics_install_prompt "Source: $alacritty_source"
#Goind the this scrit's dir
cd $ALACRITTY_SCRIPT_DIR
#Creatinf the configuration file path
mkdir -p $USER_DOTFILE_DIR/alacritty
#installing dependencies from standart repositories
case $OS in
debian)
install_from_list "${alacritty_req_list_debian[@]}"
install_from_repo "${alacritty_dependencies_debian[@]}"
;;
arch)
install_from_list "${alacritty_req_list_arch[@]}"
install_from_repo "${alacritty_dependencies_arch[@]}"
;;
rasberry)
install_from_list "${alacritty_req_list_raspberry[@]}"
install_from_repo "${alacritty_dependencies_raspberry[@]}"
;;
*)
@ -75,11 +93,20 @@ install_alacritty()
;;
esac
#Calling function to compile Allacritty wiht rust
alacritty_install_core
#Copying the configuration file to the configuration of the user
cp $DOTFILE_DIR/alacritty/alacritty_$PLATFORM.yml $USER_DOTFILE_DIR/alacritty/alacritty.yml
#Calling funtion to set the opacity
alacritty_set_opacity
#Calling function to set the fint size
alacritty_set_font_size
graphics_install_prompt "Alacritty installation complete"
# Going back the the main dir where the installation script is
cd $MAIN_DIR
}

@ -6,7 +6,7 @@ static const unsigned int alpha = 0xf0;
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
//"monospace:size=
"xft:Ubuntu:weight=bold:pixelsize=24tialias=true:hinting=true"
"xft:Ubuntu:weight=bold:pixelsize=18tialias=true:hinting=true"
};
static const char *prompt = NULL; /* -p option; prompt to the left of input field */

Binary file not shown.

Binary file not shown.

@ -0,0 +1,98 @@
#!/bin/bash
INSTALL_CMDS_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
#################################################################################
# INCLUDES #
#################################################################################
source $INSTALL_CMDS_DIR/dmenu/dmenu.sh
source $INSTALL_CMDS_DIR/fonts/fonts.sh
source $INSTALL_CMDS_DIR/alacritty/alacritty.sh
source $INSTALL_CMDS_DIR/wallpaper/wallpaper.sh
source $INSTALL_CMDS_DIR/picom/picom.sh
source $INSTALL_CMDS_DIR/obsidian/obsidian.sh
source $INSTALL_CMDS_DIR/xmonad/xmonad.sh
source $INSTALL_CMDS_DIR/sddm/sddm.sh
source $INSTALL_CMDS_DIR/fish/fish.sh
source $INSTALL_CMDS_DIR/i3/i3.sh
#################################################################################
# DECLARATIONS #
#################################################################################
package_manager="none"
#################################################################################
# FUNCTIONS #
#################################################################################
install_from_repo()
{
theList=("$@")
for i in "${!theList[@]}";
do
currentProg=${theList[$i]}
if [ $( check_installed $currentProg ) -eq 0 ]
then
color_start "themeInstall"
echo "--> $currentProg"
echo " |--> Will Be Installed"
echo "${pckgmngr_list[$OS_NO]} $currentProg"
${pckgmngr_list[$OS_NO]} $currentProg
color_stop
else
color_start "themeSkip"
echo "--> $currentProg"
echo " |--> Was found and will not be installed"
echo ""
color_stop
fi
done
}
install_from_scritp()
{
theList=("$@")
for i in "${!theList[@]}";
do
currentProg=${theList[$i]}
install_$currentProg
done
}
install_start()
{
cd $INSTALL_CMDS_DIR
graphics_indication "Common installations these programs are OS independent from"
install_from_repo "${common_programs_list[@]}"
graphics_indication "Istallation will begin for $OS"
case $OS in
debian)
graphics_indication "Default installation will begin for $OS"
install_from_repo "${default_installs_debian[@]}"
graphics_indication "Custom installations will begin for $OS"
install_from_scritp "${custom_installs_debian[@]}"
;;
arch)
graphics_indication "Default installation will begin for $OS"
install_from_repo "${default_installs_arch[@]}"
graphics_indication "Custom installations will begin for $OS"
install_from_scritp "${custom_installs_arch[@]}"
;;
rasberry)
graphics_indication "Default installation will begin for $OS"
install_from_repo "${default_installs_raspberry[@]}"
graphics_indication "Custom installations will begin for $OS"
install_from_scritp "${custom_installs_raspberry[@]}"
;;
*)
echo "Invalid os for installation"
exit_abord
;;
esac
}

@ -13,6 +13,9 @@ install_picom()
case $OS in
debian)
sudo apt install -y picom
;;
ddebian)
graphics_install_prompt "For Debian The verison which supports rounded edges"
graphics_install_prompt "Source : $picomDebianSource"

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save