mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
refactor: resolve indentation issues
This commit is contained in:
parent
d8cb82681d
commit
b1ae1d234e
@ -2,7 +2,7 @@
|
|||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# main dependencies #
|
# main dependencies #
|
||||||
|
|
||||||
# packages neeeded
|
# packages needed
|
||||||
dependencies=(
|
dependencies=(
|
||||||
build-essential
|
build-essential
|
||||||
cmake
|
cmake
|
||||||
|
|||||||
@ -10,7 +10,7 @@ Extra=(
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# packages neeeded
|
# packages needed
|
||||||
hypr_package=(
|
hypr_package=(
|
||||||
cliphist
|
cliphist
|
||||||
grim
|
grim
|
||||||
|
|||||||
@ -19,18 +19,17 @@ ORANGE=$(tput setaf 166)
|
|||||||
YELLOW=$(tput setaf 3)
|
YELLOW=$(tput setaf 3)
|
||||||
RESET=$(tput sgr0)
|
RESET=$(tput sgr0)
|
||||||
|
|
||||||
|
|
||||||
# Function for installing packages
|
# Function for installing packages
|
||||||
install_package() {
|
install_package() {
|
||||||
# Checking if package is already installed
|
# Checking if package is already installed
|
||||||
if sudo dpkg -l | grep -q -w "$1" ; then
|
if sudo dpkg -l | grep -q -w "$1"; then
|
||||||
echo -e "${OK} $1 is already installed. Skipping..."
|
echo -e "${OK} $1 is already installed. Skipping..."
|
||||||
else
|
else
|
||||||
# Package not installed
|
# Package not installed
|
||||||
echo -e "${NOTE} Installing $1 ..."
|
echo -e "${NOTE} Installing $1 ..."
|
||||||
sudo apt-get install -y "$1" 2>&1 | tee -a "$LOG"
|
sudo apt-get install -y "$1" 2>&1 | tee -a "$LOG"
|
||||||
# Making sure the package is installed
|
# Making sure the package is installed
|
||||||
if sudo dpkg -l | grep -q -w "$1" ; then
|
if sudo dpkg -l | grep -q -w "$1"; then
|
||||||
echo -e "\e[1A\e[K${OK} $1 was installed."
|
echo -e "\e[1A\e[K${OK} $1 was installed."
|
||||||
else
|
else
|
||||||
# Something is missing, exiting to review the log
|
# Something is missing, exiting to review the log
|
||||||
@ -42,7 +41,7 @@ install_package() {
|
|||||||
|
|
||||||
uninstall_package() {
|
uninstall_package() {
|
||||||
# Check if package is installed
|
# Check if package is installed
|
||||||
if sudo dpkg -l | grep -q -w "^ii $1" ; then
|
if sudo dpkg -l | grep -q -w "^ii $1"; then
|
||||||
# Package is installed, attempt to uninstall
|
# Package is installed, attempt to uninstall
|
||||||
echo -e "${NOTE} Uninstalling $1 ..."
|
echo -e "${NOTE} Uninstalling $1 ..."
|
||||||
|
|
||||||
@ -50,7 +49,7 @@ uninstall_package() {
|
|||||||
sudo apt-get autoremove -y "$1" >> "$LOG" 2>&1
|
sudo apt-get autoremove -y "$1" >> "$LOG" 2>&1
|
||||||
|
|
||||||
# Check if the package is still installed after removal attempt
|
# Check if the package is still installed after removal attempt
|
||||||
if ! dpkg -l | grep -q -w "^ii $1" ; then
|
if ! dpkg -l | grep -q -w "^ii $1"; then
|
||||||
echo -e "\e[1A\e[K${OK} $1 was uninstalled."
|
echo -e "\e[1A\e[K${OK} $1 was uninstalled."
|
||||||
else
|
else
|
||||||
echo -e "\e[1A\e[K${ERROR} $1 failed to uninstall. Please check the uninstall.log."
|
echo -e "\e[1A\e[K${ERROR} $1 failed to uninstall. Please check the uninstall.log."
|
||||||
|
|||||||
@ -1,18 +1,18 @@
|
|||||||
7#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# Aylur's GTK Shell #
|
# Aylur's GTK Shell #
|
||||||
|
|
||||||
ags=(
|
ags=(
|
||||||
node-typescript
|
node-typescript
|
||||||
npm
|
npm
|
||||||
meson
|
meson
|
||||||
libgjs-dev
|
libgjs-dev
|
||||||
gjs
|
gjs
|
||||||
libgtk-layer-shell-dev
|
libgtk-layer-shell-dev
|
||||||
libgtk-3-dev
|
libgtk-3-dev
|
||||||
libpulse-dev
|
libpulse-dev
|
||||||
libdbusmenu-gtk3-dev
|
libdbusmenu-gtk3-dev
|
||||||
libsoup-3.0-dev
|
libsoup-3.0-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
# specific tags to download
|
# specific tags to download
|
||||||
@ -41,11 +41,10 @@ for PKG1 in "${ags[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
#install typescript by npm
|
# Install typescript by npm
|
||||||
sudo npm install --global typescript 2>&1 | tee -a "$LOG"
|
sudo npm install --global typescript 2>&1 | tee -a "$LOG"
|
||||||
|
|
||||||
# ags
|
# ags
|
||||||
|
|
||||||
printf "${NOTE} Install and Compiling Aylurs GTK shell\n"
|
printf "${NOTE} Install and Compiling Aylurs GTK shell\n"
|
||||||
|
|
||||||
# Check if folder exists and remove it
|
# Check if folder exists and remove it
|
||||||
@ -75,3 +74,4 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
clear
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
# Bluetooth #
|
# Bluetooth #
|
||||||
|
|
||||||
blue=(
|
blue=(
|
||||||
bluez
|
bluez
|
||||||
blueman
|
blueman
|
||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -22,10 +22,13 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_bluetooth.log"
|
|||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
printf "${NOTE} Installing Bluetooth Packages...\n"
|
printf "${NOTE} Installing Bluetooth Packages...\n"
|
||||||
for BLUE in "${blue[@]}"; do
|
for BLUE in "${blue[@]}"; do
|
||||||
install_package "$BLUE" 2>&1 | tee -a "$LOG"
|
install_package "$BLUE" 2>&1 | tee -a "$LOG"
|
||||||
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $BLUE Package installation failed, Please check the installation logs"; exit 1; }
|
if [ $? -ne 0 ]; then
|
||||||
done
|
echo -e "\e[1A\e[K${ERROR} - $BLUE Package installation failed, Please check the installation logs"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
printf " Activating Bluetooth Services...\n"
|
printf " Activating Bluetooth Services...\n"
|
||||||
sudo systemctl enable --now bluetooth.service 2>&1 | tee -a "$LOG"
|
sudo systemctl enable --now bluetooth.service 2>&1 | tee -a "$LOG"
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# Cliphist install using go #
|
# Cliphist install using go #
|
||||||
|
|
||||||
## This is to be be use for Ubuntu 23.10 only
|
## This is to be be used for Ubuntu 23.10 only
|
||||||
# it is disabled by default. Enable it on install.sh #execute_script "cliphist.sh"
|
# it is disabled by default. Enable it on install.sh #execute_script "cliphist.sh"
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -23,7 +23,7 @@ printf "\n%s - Installing cliphist using go.... \n" "${NOTE}"
|
|||||||
export PATH=$PATH:/usr/local/bin
|
export PATH=$PATH:/usr/local/bin
|
||||||
go install go.senan.xyz/cliphist@latest 2>&1 | tee -a "$LOG"
|
go install go.senan.xyz/cliphist@latest 2>&1 | tee -a "$LOG"
|
||||||
|
|
||||||
# copy cliphist into /usr/local/bin for some reason it is installing in ~/go/bin
|
# Copy cliphist into /usr/local/bin for some reason it is installing in ~/go/bin
|
||||||
sudo cp -r "$HOME/go/bin/cliphist" "/usr/local/bin/" 2>&1 | tee -a "$LOG"
|
sudo cp -r "$HOME/go/bin/cliphist" "/usr/local/bin/" 2>&1 | tee -a "$LOG"
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|||||||
@ -3,11 +3,11 @@
|
|||||||
# Fonts Required #
|
# Fonts Required #
|
||||||
|
|
||||||
fonts=(
|
fonts=(
|
||||||
fonts-firacode
|
fonts-firacode
|
||||||
fonts-font-awesome
|
fonts-font-awesome
|
||||||
fonts-noto
|
fonts-noto
|
||||||
fonts-noto-cjk
|
fonts-noto-cjk
|
||||||
fonts-noto-color-emoji
|
fonts-noto-color-emoji
|
||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
|
|||||||
@ -20,8 +20,7 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_themes.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_themes.log"
|
||||||
|
|
||||||
|
# Installing engine needed for GTK themes
|
||||||
# installing engine needed for gtk themes
|
|
||||||
for PKG1 in "${engine[@]}"; do
|
for PKG1 in "${engine[@]}"; do
|
||||||
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
@ -37,7 +36,7 @@ if [ -d "GTK-themes-icons" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$NOTE Cloning GTK themes and Icons repository..." 2>&1 | tee -a "$LOG"
|
echo "$NOTE Cloning GTK themes and Icons repository..." 2>&1 | tee -a "$LOG"
|
||||||
if git clone https://github.com/JaKooLit/GTK-themes-icons.git ; then
|
if git clone https://github.com/JaKooLit/GTK-themes-icons.git; then
|
||||||
cd GTK-themes-icons
|
cd GTK-themes-icons
|
||||||
chmod +x auto-extract.sh
|
chmod +x auto-extract.sh
|
||||||
./auto-extract.sh
|
./auto-extract.sh
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# This is to be use for installing hyprland plugins
|
# This is to be used for installing hyprland plugins
|
||||||
# Hyprland plugins: pyprland
|
# Hyprland plugins: pyprland
|
||||||
|
|
||||||
pypr_depend=(
|
pypr_depend=(
|
||||||
python3-aiofiles
|
python3-aiofiles
|
||||||
python-is-python3
|
python-is-python3
|
||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -23,11 +23,13 @@ LOG="Install-Logs/install-$(date +%d-%H%M%S)_hypr_eco.log"
|
|||||||
|
|
||||||
# Pyprland
|
# Pyprland
|
||||||
printf "${NOTE} Installing Pyprland Dependencies...\n"
|
printf "${NOTE} Installing Pyprland Dependencies...\n"
|
||||||
for PYPR in "${pypr_depend[@]}"; do
|
for PYPR in "${pypr_depend[@]}"; do
|
||||||
install_package "$PYPR" 2>&1 | tee -a "$LOG"
|
install_package "$PYPR" 2>&1 | tee -a "$LOG"
|
||||||
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $PYPR Package installation failed, Please check the installation logs"; exit 1; }
|
if [ $? -ne 0 ]; then
|
||||||
done
|
echo -e "\e[1A\e[K${ERROR} - $PYPR Package installation failed, Please check the installation logs"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Check if the file exists and delete it
|
# Check if the file exists and delete it
|
||||||
pypr="/usr/local/bin/pypr"
|
pypr="/usr/local/bin/pypr"
|
||||||
|
|||||||
@ -3,11 +3,11 @@
|
|||||||
# hyprcursor #
|
# hyprcursor #
|
||||||
|
|
||||||
cursor=(
|
cursor=(
|
||||||
libzip-dev
|
libzip-dev
|
||||||
librsvg2-dev
|
librsvg2-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
# specific branch or release
|
||||||
cursor_tag="v0.1.8"
|
cursor_tag="v0.1.8"
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -43,22 +43,20 @@ fi
|
|||||||
|
|
||||||
# Clone and build
|
# Clone and build
|
||||||
printf "${NOTE} Installing hyprcursor...\n"
|
printf "${NOTE} Installing hyprcursor...\n"
|
||||||
if git clone --recursive -b $cursor_tag https://github.com/hyprwm/hyprcursor.git; then
|
if git clone --recursive -b "$cursor_tag" https://github.com/hyprwm/hyprcursor.git; then
|
||||||
cd hyprcursor || exit 1
|
cd hyprcursor || exit 1
|
||||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
cmake --build ./build --config Release --target all -j"$(nproc 2>/dev/null || getconf NPROCESSORS_CONF)"
|
||||||
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG"; then
|
||||||
printf "${OK} hyprcursor installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} hyprcursor installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for hyprcursor." 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for hyprcursor." 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
#moving the addional logs to Install-Logs directory
|
# moving the additional logs to Install-Logs directory
|
||||||
mv $MLOG ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for hyprcursor." 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for hyprcursor." 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# hypidle #
|
# hypridle #
|
||||||
|
|
||||||
idle=(
|
idle=(
|
||||||
libsdbus-c++-dev
|
libsdbus-c++-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
# specific branch or release
|
||||||
idle_tag="v0.1.2"
|
idle_tag="v0.1.2"
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -42,22 +42,20 @@ fi
|
|||||||
|
|
||||||
# Clone and build
|
# Clone and build
|
||||||
printf "${NOTE} Installing hypridle...\n"
|
printf "${NOTE} Installing hypridle...\n"
|
||||||
if git clone --recursive -b $idle_tag https://github.com/hyprwm/hypridle.git; then
|
if git clone --recursive -b "$idle_tag" https://github.com/hyprwm/hypridle.git; then
|
||||||
cd hypridle || exit 1
|
cd hypridle || exit 1
|
||||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
||||||
cmake --build ./build --config Release --target hypridle -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
cmake --build ./build --config Release --target hypridle -j"$(nproc 2>/dev/null || getconf NPROCESSORS_CONF)"
|
||||||
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG"; then
|
||||||
printf "${OK} hypridle installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} hypridle installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for hypridle." 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for hypridle." 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
#moving the addional logs to Install-Logs directory
|
# Moving the additional logs to Install-Logs directory
|
||||||
mv $MLOG ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for hypridle." 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for hypridle." 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,7 @@
|
|||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# Main Hyprland Package#
|
# Main Hyprland Package#
|
||||||
|
|
||||||
|
# specific branch or release
|
||||||
#specific branch or release
|
|
||||||
hyprland_tag="v0.39.1"
|
hyprland_tag="v0.39.1"
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -29,7 +28,7 @@ if [ -d "Hyprland" ]; then
|
|||||||
rm -rf "Hyprland" 2>&1 | tee -a "$LOG"
|
rm -rf "Hyprland" 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if git clone --recursive -b $hyprland_tag "https://github.com/hyprwm/Hyprland"; then
|
if git clone --recursive -b "$hyprland_tag" "https://github.com/hyprwm/Hyprland"; then
|
||||||
cd "Hyprland" || exit 1
|
cd "Hyprland" || exit 1
|
||||||
make all
|
make all
|
||||||
if sudo make install 2>&1 | tee -a "$MLOG"; then
|
if sudo make install 2>&1 | tee -a "$MLOG"; then
|
||||||
@ -37,7 +36,7 @@ if git clone --recursive -b $hyprland_tag "https://github.com/hyprwm/Hyprland";
|
|||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for Hyprland." 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for Hyprland." 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
mv $MLOG ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for Hyprland." 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for Hyprland." 2>&1 | tee -a "$LOG"
|
||||||
@ -48,4 +47,3 @@ wayland_sessions_dir=/usr/share/wayland-sessions
|
|||||||
sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG"
|
sudo cp assets/hyprland.desktop "$wayland_sessions_dir/" 2>&1 | tee -a "$LOG"
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# hyprlang - hyprland and xdg-desktop-portal- dependencies #
|
# hyprlang - hyprland and xdg-desktop-portal- dependencies #
|
||||||
|
|
||||||
#specific branch or release
|
# specific branch or release
|
||||||
lang_tag="v0.5.1"
|
lang_tag="v0.5.1"
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -30,22 +30,20 @@ fi
|
|||||||
|
|
||||||
# Clone and build hyprlang
|
# Clone and build hyprlang
|
||||||
printf "${NOTE} Installing hyprlang...\n"
|
printf "${NOTE} Installing hyprlang...\n"
|
||||||
if git clone --recursive -b $lang_tag https://github.com/hyprwm/hyprlang.git; then
|
if git clone --recursive -b "$lang_tag" https://github.com/hyprwm/hyprlang.git; then
|
||||||
cd hyprlang || exit 1
|
cd hyprlang || exit 1
|
||||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
||||||
cmake --build ./build --config Release --target hyprlang -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
cmake --build ./build --config Release --target hyprlang -j"$(nproc 2>/dev/null || getconf NPROCESSORS_CONF)"
|
||||||
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG" ; then
|
if sudo cmake --install ./build 2>&1 | tee -a "$MLOG"; then
|
||||||
printf "${OK} hyprlang installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} hyprlang installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for hyprlang." 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for hyprlang." 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
#moving the addional logs to Install-Logs directory
|
# Moving the additional logs to Install-Logs directory
|
||||||
mv $MLOG ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for hyprlang." 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for hyprlang." 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
# hyprlock #
|
# hyprlock #
|
||||||
|
|
||||||
lock=(
|
lock=(
|
||||||
libmagic-dev
|
libmagic-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
# specific branch or release
|
||||||
lock_tag="v0.3.0"
|
lock_tag="v0.3.0"
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -34,7 +34,7 @@ for PKG1 in "${lock[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Check if hyprlidle folder exists and remove it
|
# Check if hyprlock folder exists and remove it
|
||||||
if [ -d "hyprlock" ]; then
|
if [ -d "hyprlock" ]; then
|
||||||
printf "${NOTE} Removing existing hyprlock folder...\n"
|
printf "${NOTE} Removing existing hyprlock folder...\n"
|
||||||
rm -rf "hyprlock"
|
rm -rf "hyprlock"
|
||||||
@ -42,21 +42,20 @@ fi
|
|||||||
|
|
||||||
# Clone and build hyprlock
|
# Clone and build hyprlock
|
||||||
printf "${NOTE} Installing hyprlock...\n"
|
printf "${NOTE} Installing hyprlock...\n"
|
||||||
if git clone --recursive -b $lock_tag https://github.com/hyprwm/hyprlock.git; then
|
if git clone --recursive -b "$lock_tag" https://github.com/hyprwm/hyprlock.git; then
|
||||||
cd hyprlock || exit 1
|
cd hyprlock || exit 1
|
||||||
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build
|
||||||
cmake --build ./build --config Release --target hyprlock -j`nproc 2>/dev/null || getconf _NPROCESSORS_CONF`
|
cmake --build ./build --config Release --target hyprlock -j"$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF)"
|
||||||
if sudo cmake --install build 2>&1 | tee -a "$MLOG" ; then
|
if sudo cmake --install build 2>&1 | tee -a "$MLOG"; then
|
||||||
printf "${OK} hyprlock installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} hyprlock installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for hyprlock." 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for hyprlock." 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
#moving the addional logs to Install-Logs directory
|
# Moving the additional logs to Install-Logs directory
|
||||||
mv $MLOG ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for hyprlock." 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for hyprlock." 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,9 @@
|
|||||||
# imagemagick from source #
|
# imagemagick from source #
|
||||||
|
|
||||||
depend=(
|
depend=(
|
||||||
build-essential
|
build-essential
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
# Determine the directory where the script is located
|
# Determine the directory where the script is located
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
@ -21,7 +20,7 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_image.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_image.log"
|
||||||
MLOG="install-$(date +%d-%H%M%S)_image.log"
|
MLOG="install-$(date +%d-%H%M%S)_image.log"
|
||||||
|
|
||||||
# Installing depencies
|
# Installing dependencies
|
||||||
for PKG1 in "${depend[@]}"; do
|
for PKG1 in "${depend[@]}"; do
|
||||||
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
@ -30,7 +29,6 @@ for PKG1 in "${depend[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
##
|
|
||||||
printf "${NOTE} Installing ImageMagick from source...\n"
|
printf "${NOTE} Installing ImageMagick from source...\n"
|
||||||
|
|
||||||
# Check if folder exists and remove it
|
# Check if folder exists and remove it
|
||||||
@ -45,14 +43,14 @@ if git clone --depth 1 https://github.com/ImageMagick/ImageMagick.git; then
|
|||||||
cd ImageMagick || exit 1
|
cd ImageMagick || exit 1
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
if sudo make install 2>&1 | tee -a "$MLOG" ; then
|
if sudo make install 2>&1 | tee -a "$MLOG"; then
|
||||||
sudo ldconfig /usr/local/lib
|
sudo ldconfig /usr/local/lib
|
||||||
printf "${OK} ImageMagick installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} ImageMagick installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for ImageMagick." 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for ImageMagick." 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
#moving the addional logs to Install-Logs directory
|
# Moving the additional logs to Install-Logs directory
|
||||||
mv $MLOG ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for ImageMagick." 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for ImageMagick." 2>&1 | tee -a "$LOG"
|
||||||
|
|||||||
@ -53,52 +53,51 @@ add_to_file() {
|
|||||||
|
|
||||||
# Install additional Nvidia packages
|
# Install additional Nvidia packages
|
||||||
printf "${YELLOW} Installing Nvidia packages...\n"
|
printf "${YELLOW} Installing Nvidia packages...\n"
|
||||||
for NVIDIA in "${nvidia_pkg[@]}"; do
|
for NVIDIA in "${nvidia_pkg[@]}"; do
|
||||||
install_package "$NVIDIA" 2>&1 | tee -a "$LOG"
|
install_package "$NVIDIA" 2>&1 | tee -a "$LOG"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
printf "${YELLOW} nvidia-stuff to /etc/default/grub...\n"
|
||||||
|
|
||||||
printf "${YELLOW} nvidia-stuff to /etc/default/grub..."
|
# Additional options to add to GRUB_CMDLINE_LINUX
|
||||||
|
additional_options="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rcutree.rcu_idle_gp_delay=1"
|
||||||
|
|
||||||
# Additional options to add to GRUB_CMDLINE_LINUX
|
# Check if additional options are already present in GRUB_CMDLINE_LINUX
|
||||||
additional_options="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 rcutree.rcu_idle_gp_delay=1"
|
if grep -q "GRUB_CMDLINE_LINUX.*$additional_options" /etc/default/grub; then
|
||||||
|
|
||||||
# Check if additional options are already present in GRUB_CMDLINE_LINUX
|
|
||||||
if grep -q "GRUB_CMDLINE_LINUX.*$additional_options" /etc/default/grub; then
|
|
||||||
echo "GRUB_CMDLINE_LINUX already contains the additional options"
|
echo "GRUB_CMDLINE_LINUX already contains the additional options"
|
||||||
else
|
else
|
||||||
# Append the additional options to GRUB_CMDLINE_LINUX
|
# Append the additional options to GRUB_CMDLINE_LINUX
|
||||||
sudo sed -i "s/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"$additional_options /" /etc/default/grub
|
sudo sed -i "s/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"$additional_options /" /etc/default/grub
|
||||||
echo "Added the additional options to GRUB_CMDLINE_LINUX"
|
echo "Added the additional options to GRUB_CMDLINE_LINUX"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update GRUB configuration
|
# Update GRUB configuration
|
||||||
sudo update-grub 2>&1 | tee -a "$LOG"
|
sudo update-grub 2>&1 | tee -a "$LOG"
|
||||||
|
|
||||||
# Define the configuration file and the line to add
|
# Define the configuration file and the line to add
|
||||||
config_file="/etc/modprobe.d/nvidia.conf"
|
config_file="/etc/modprobe.d/nvidia.conf"
|
||||||
line_to_add="""
|
line_to_add="""
|
||||||
options nvidia-drm modeset=1 fbdev=1
|
options nvidia-drm modeset=1 fbdev=1
|
||||||
options nvidia NVreg_PreserveVideoMemoryAllocations=1
|
options nvidia NVreg_PreserveVideoMemoryAllocations=1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Check if the config file exists
|
# Check if the config file exists
|
||||||
if [ ! -e "$config_file" ]; then
|
if [ ! -e "$config_file" ]; then
|
||||||
echo "Creating $config_file"
|
echo "Creating $config_file"
|
||||||
sudo touch "$config_file" 2>&1 | tee -a "$LOG"
|
sudo touch "$config_file" 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
add_to_file "$config_file" "$line_to_add"
|
add_to_file "$config_file" "$line_to_add"
|
||||||
|
|
||||||
# Add NVIDIA modules to initramfs configuration
|
# Add NVIDIA modules to initramfs configuration
|
||||||
modules_to_add="nvidia nvidia_modeset nvidia_uvm nvidia_drm"
|
modules_to_add="nvidia nvidia_modeset nvidia_uvm nvidia_drm"
|
||||||
modules_file="/etc/initramfs-tools/modules"
|
modules_file="/etc/initramfs-tools/modules"
|
||||||
|
|
||||||
if [ -e "$modules_file" ]; then
|
if [ -e "$modules_file" ]; then
|
||||||
add_to_file "$modules_file" "$modules_to_add" 2>&1 | tee -a "$LOG"
|
add_to_file "$modules_file" "$modules_to_add" 2>&1 | tee -a "$LOG"
|
||||||
sudo update-initramfs -u 2>&1 | tee -a "$LOG"
|
sudo update-initramfs -u 2>&1 | tee -a "$LOG"
|
||||||
else
|
else
|
||||||
echo "Modules file ($modules_file) not found." 2>&1 | tee -a "$LOG"
|
echo "Modules file ($modules_file) not found." 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# nwg-look ) #
|
# nwg-look #
|
||||||
|
|
||||||
nwg_look=(
|
nwg_look=(
|
||||||
golang
|
golang
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# Rofi-Wayland) #
|
# Rofi-Wayland #
|
||||||
|
|
||||||
rofi=(
|
rofi=(
|
||||||
bison
|
bison
|
||||||
@ -28,7 +28,7 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_rofi_wayland.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_rofi_wayland.log"
|
||||||
MLOG="install-$(date +%d-%H%M%S)_rofi_wayland2.log"
|
MLOG="install-$(date +%d-%H%M%S)_rofi_wayland2.log"
|
||||||
|
|
||||||
# uninstall other rofi
|
# Uninstall other rofi
|
||||||
for PKG in "rofi" "bison"; do
|
for PKG in "rofi" "bison"; do
|
||||||
uninstall_package "$PKG" 2>&1 | tee -a "$LOG"
|
uninstall_package "$PKG" 2>&1 | tee -a "$LOG"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
@ -43,14 +43,14 @@ printf "\n"
|
|||||||
printf "\n%s - Installing rofi-wayland dependencies.... \n" "${NOTE}"
|
printf "\n%s - Installing rofi-wayland dependencies.... \n" "${NOTE}"
|
||||||
|
|
||||||
printf "${NOTE} Force installing packages...\n"
|
printf "${NOTE} Force installing packages...\n"
|
||||||
for FORCE in "${rofi[@]}"; do
|
for FORCE in "${rofi[@]}"; do
|
||||||
sudo apt-get --reinstall install -y "$FORCE" 2>&1 | tee -a "$LOG"
|
sudo apt-get --reinstall install -y "$FORCE" 2>&1 | tee -a "$LOG"
|
||||||
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $FORCE Package installation failed, Please check the installation logs"; exit 1; }
|
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $FORCE Package installation failed, Please check the installation logs"; exit 1; }
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
|
|
||||||
# Clone and build rofi - wayland
|
# Clone and build rofi-wayland
|
||||||
printf "${NOTE} Installing rofi-wayland...\n"
|
printf "${NOTE} Installing rofi-wayland...\n"
|
||||||
|
|
||||||
# Check if rofi folder exists
|
# Check if rofi folder exists
|
||||||
@ -59,7 +59,7 @@ if [ -d "rofi" ]; then
|
|||||||
rm -rf rofi
|
rm -rf rofi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# cloning rofi-wayland
|
# Cloning rofi-wayland
|
||||||
printf "${NOTE} Cloning rofi-wayland repository...\n"
|
printf "${NOTE} Cloning rofi-wayland repository...\n"
|
||||||
if git clone https://github.com/lbonn/rofi.git; then
|
if git clone https://github.com/lbonn/rofi.git; then
|
||||||
cd rofi || exit 1
|
cd rofi || exit 1
|
||||||
@ -69,7 +69,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Proceed with the installation steps
|
# Proceed with the installation steps
|
||||||
if meson setup build && ninja -C build ; then
|
if meson setup build && ninja -C build; then
|
||||||
if sudo ninja -C build install 2>&1 | tee -a "$MLOG"; then
|
if sudo ninja -C build install 2>&1 | tee -a "$MLOG"; then
|
||||||
printf "${OK} rofi-wayland installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} rofi-wayland installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# ASUS ROG ) #
|
# ASUS ROG #
|
||||||
|
|
||||||
asus=(
|
asus=(
|
||||||
power-profiles-daemon
|
power-profiles-daemon
|
||||||
@ -22,7 +22,7 @@ source $HOME/.cargo/env
|
|||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="install-$(date +%d-%H%M%S)_rog.log"
|
LOG="install-$(date +%d-%H%M%S)_rog.log"
|
||||||
|
|
||||||
# Installing enhancemet
|
# Installing enhancement
|
||||||
for PKG1 in "${asus[@]}"; do
|
for PKG1 in "${asus[@]}"; do
|
||||||
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
@ -56,8 +56,8 @@ install_and_log() {
|
|||||||
echo -e "${ERROR} Installation failed for $project_name."
|
echo -e "${ERROR} Installation failed for $project_name."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#moving logs into main install-logs
|
# Moving logs into main install-logs
|
||||||
mv $LOG ../Install-Logs/ || true
|
mv "$LOG" ../Install-Logs/ || true
|
||||||
cd - || exit 1
|
cd - || exit 1
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Cloning $project_name from $git_url failed."
|
echo -e "${ERROR} Cloning $project_name from $git_url failed."
|
||||||
|
|||||||
@ -28,7 +28,6 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_sddm.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_sddm.log"
|
||||||
|
|
||||||
|
|
||||||
# Install SDDM (no-recommends)
|
# Install SDDM (no-recommends)
|
||||||
printf "\n%s - Installing sddm.... \n" "${NOTE}"
|
printf "\n%s - Installing sddm.... \n" "${NOTE}"
|
||||||
for PKG1 in "${sddm1[@]}" ; do
|
for PKG1 in "${sddm1[@]}" ; do
|
||||||
|
|||||||
@ -3,9 +3,9 @@
|
|||||||
# swappy - for screenshot) #
|
# swappy - for screenshot) #
|
||||||
|
|
||||||
swappy=(
|
swappy=(
|
||||||
liblocale-msgfmt-perl
|
liblocale-msgfmt-perl
|
||||||
gettext
|
gettext
|
||||||
libgtk-3-dev
|
libgtk-3-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -55,13 +55,13 @@ if git clone --depth 1 https://github.com/jtheoof/swappy.git; then
|
|||||||
cd swappy || exit 1
|
cd swappy || exit 1
|
||||||
meson setup build
|
meson setup build
|
||||||
ninja -C build
|
ninja -C build
|
||||||
if sudo ninja -C build install 2>&1 | tee -a "$MLOG" ; then
|
if sudo ninja -C build install 2>&1 | tee -a "$MLOG"; then
|
||||||
printf "${OK} swappy installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} swappy installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for swappy." 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for swappy." 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
#moving the addional logs to Install-Logs directory
|
# Moving the additional logs to Install-Logs directory
|
||||||
mv $MLOG ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for swappy." 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for swappy." 2>&1 | tee -a "$LOG"
|
||||||
|
|||||||
@ -3,10 +3,10 @@
|
|||||||
# SWWW - Wallpaper Utility #
|
# SWWW - Wallpaper Utility #
|
||||||
|
|
||||||
swww=(
|
swww=(
|
||||||
liblz4-dev
|
liblz4-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
# specific branch or release
|
||||||
swww_tag="v0.9.5"
|
swww_tag="v0.9.5"
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -35,10 +35,10 @@ for PKG1 in "${swww[@]}"; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
printf "${NOTE} Force installing packages...\n"
|
printf "${NOTE} Force installing packages...\n"
|
||||||
for FORCE in "${swww[@]}"; do
|
for FORCE in "${swww[@]}"; do
|
||||||
sudo apt-get --reinstall install -y "$FORCE" 2>&1 | tee -a "$LOG"
|
sudo apt-get --reinstall install -y "$FORCE" 2>&1 | tee -a "$LOG"
|
||||||
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $FORCE Package installation failed, Please check the installation logs"; exit 1; }
|
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $FORCE Package installation failed, Please check the installation logs"; exit 1; }
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\n\n"
|
printf "\n\n"
|
||||||
|
|
||||||
|
|||||||
@ -3,13 +3,13 @@
|
|||||||
# Thunar #
|
# Thunar #
|
||||||
|
|
||||||
thunar=(
|
thunar=(
|
||||||
ffmpegthumbnailer
|
ffmpegthumbnailer
|
||||||
file-roller
|
file-roller
|
||||||
thunar
|
thunar
|
||||||
thunar-volman
|
thunar-volman
|
||||||
tumbler
|
tumbler
|
||||||
thunar-archive-plugin
|
thunar-archive-plugin
|
||||||
xarchiver
|
xarchiver
|
||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -26,12 +26,12 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_thunar.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_thunar.log"
|
||||||
|
|
||||||
printf "${NOTE} Installing Thunar Packages...\n"
|
printf "${NOTE} Installing Thunar Packages...\n"
|
||||||
for THUNAR in "${thunar[@]}"; do
|
for THUNAR in "${thunar[@]}"; do
|
||||||
install_package "$THUNAR" 2>&1 | tee -a "$LOG"
|
install_package "$THUNAR" 2>&1 | tee -a "$LOG"
|
||||||
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $THUNAR Package installation failed, Please check the installation logs"; exit 1; }
|
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $THUNAR Package installation failed, Please check the installation logs"; exit 1; }
|
||||||
done
|
done
|
||||||
|
|
||||||
# Check for existing configs and copy if does not exist
|
# Check for existing configs and copy if does not exist
|
||||||
for DIR1 in gtk-3.0 Thunar xfce4; do
|
for DIR1 in gtk-3.0 Thunar xfce4; do
|
||||||
DIRPATH=~/.config/$DIR1
|
DIRPATH=~/.config/$DIR1
|
||||||
if [ -d "$DIRPATH" ]; then
|
if [ -d "$DIRPATH" ]; then
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# wallust - pywal colors replacment #
|
# wallust - pywal colors replacement #
|
||||||
|
|
||||||
depend=(
|
depend=(
|
||||||
librust-jpeg-decoder-dev
|
librust-jpeg-decoder-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
# specific branch or release
|
||||||
wal_tag="dev"
|
wal_tag="dev"
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -23,7 +23,7 @@ source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
|||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_wallust.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_wallust.log"
|
||||||
MLOG="install-$(date +%d-%H%M%S)_wallust.log"
|
MLOG="install-$(date +%d-%H%M%S)_wallust.log"
|
||||||
|
|
||||||
# Installing depencies
|
# Installing dependencies
|
||||||
for PKG1 in "${depend[@]}"; do
|
for PKG1 in "${depend[@]}"; do
|
||||||
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
@ -32,7 +32,6 @@ for PKG1 in "${depend[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
##
|
|
||||||
printf "${NOTE} Installing wallust from dev branch...\n"
|
printf "${NOTE} Installing wallust from dev branch...\n"
|
||||||
|
|
||||||
# Check if folder exists and remove it
|
# Check if folder exists and remove it
|
||||||
@ -43,20 +42,19 @@ fi
|
|||||||
|
|
||||||
# Clone and build wallust
|
# Clone and build wallust
|
||||||
printf "${NOTE} Installing wallust...\n"
|
printf "${NOTE} Installing wallust...\n"
|
||||||
if git clone --depth 1 -b $wal_tag https://codeberg.org/explosion-mental/wallust.git; then
|
if git clone --depth 1 -b "$wal_tag" https://codeberg.org/explosion-mental/wallust.git; then
|
||||||
cd wallust || exit 1
|
cd wallust || exit 1
|
||||||
make
|
make
|
||||||
if sudo make install 2>&1 | tee -a "$MLOG" ; then
|
if sudo make install 2>&1 | tee -a "$MLOG"; then
|
||||||
printf "${OK} wallust installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} wallust installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for wallust." 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for wallust." 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
#moving the addional logs to Install-Logs directory
|
# Moving the additional logs to Install-Logs directory
|
||||||
mv $MLOG ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for wallust." 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for wallust." 2>&1 | tee -a "$LOG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
# XDG-Desktop-Portals #
|
# XDG-Desktop-Portals #
|
||||||
|
|
||||||
xdg=(
|
xdg=(
|
||||||
xdg-desktop-portal-gtk
|
xdg-desktop-portal-gtk
|
||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
@ -24,7 +24,10 @@ MLOG="install-$(date +%d-%H%M%S)_xdph2.log"
|
|||||||
printf "${NOTE} Installing xdg-desktop-portal-gtk...\n"
|
printf "${NOTE} Installing xdg-desktop-portal-gtk...\n"
|
||||||
for portal in "${xdg[@]}"; do
|
for portal in "${xdg[@]}"; do
|
||||||
install_package "$portal" 2>&1 | tee -a "$LOG"
|
install_package "$portal" 2>&1 | tee -a "$LOG"
|
||||||
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $portal Package installation failed, Please check the installation logs"; exit 1; }
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "\e[1A\e[K${ERROR} - $portal Package installation failed, Please check the installation logs"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Check if xdg-desktop-portal-hyprland folder exists and remove it
|
# Check if xdg-desktop-portal-hyprland folder exists and remove it
|
||||||
@ -38,13 +41,13 @@ printf "${NOTE} Installing xdg-desktop-portal-hyprland...\n"
|
|||||||
if git clone --branch v1.3.0 --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland; then
|
if git clone --branch v1.3.0 --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland; then
|
||||||
cd xdg-desktop-portal-hyprland || exit 1
|
cd xdg-desktop-portal-hyprland || exit 1
|
||||||
make all
|
make all
|
||||||
if sudo make install 2>&1 | tee -a "$MLOG" ; then
|
if sudo make install 2>&1 | tee -a "$MLOG"; then
|
||||||
printf "${OK} xdg-desktop-portal-hyprland installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
printf "${OK} xdg-desktop-portal-hyprland installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Installation failed for xdg-desktop-portal-hyprland." 2>&1 | tee -a "$MLOG"
|
echo -e "${ERROR} Installation failed for xdg-desktop-portal-hyprland." 2>&1 | tee -a "$MLOG"
|
||||||
fi
|
fi
|
||||||
#moving the addional logs to Install-Logs directory
|
# Moving the additional logs to Install-Logs directory
|
||||||
mv $MLOG ../Install-Logs/ || true
|
mv "$MLOG" ../Install-Logs/ || true
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for xdg-desktop-portal-hyprland." 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for xdg-desktop-portal-hyprland." 2>&1 | tee -a "$LOG"
|
||||||
@ -77,10 +80,9 @@ while true; do
|
|||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
[Nn])
|
[Nn])
|
||||||
echo "no other XDG-implementations will be removed." 2>&1 | tee -a "$LOG"
|
echo "No other XDG-implementations will be removed." 2>&1 | tee -a "$LOG"
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "Invalid input. Please enter 'y' for yes or 'n' for no."
|
echo "Invalid input. Please enter 'y' for yes or 'n' for no."
|
||||||
;;
|
;;
|
||||||
@ -88,4 +90,3 @@ while true; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
# Zsh and Oh my Zsh + Optional Pokemon ColorScripts#
|
# Zsh and Oh my Zsh + Optional Pokemon ColorScripts#
|
||||||
|
|
||||||
zsh=(
|
zsh=(
|
||||||
zsh
|
zsh
|
||||||
zplug
|
zplug
|
||||||
)
|
)
|
||||||
|
|
||||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||||
|
|||||||
@ -113,6 +113,7 @@ ask_custom_option() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to execute a script if it exists and make it executable
|
# Function to execute a script if it exists and make it executable
|
||||||
execute_script() {
|
execute_script() {
|
||||||
local script="$1"
|
local script="$1"
|
||||||
@ -174,8 +175,7 @@ execute_script "hypridle.sh"
|
|||||||
execute_script "hyprland.sh"
|
execute_script "hyprland.sh"
|
||||||
execute_script "hypr-eco.sh"
|
execute_script "hypr-eco.sh"
|
||||||
|
|
||||||
|
# execute_script "cliphist.sh"
|
||||||
#execute_script "cliphist.sh"
|
|
||||||
|
|
||||||
if [ "$nvidia" == "Y" ]; then
|
if [ "$nvidia" == "Y" ]; then
|
||||||
execute_script "nvidia.sh"
|
execute_script "nvidia.sh"
|
||||||
@ -212,6 +212,7 @@ fi
|
|||||||
if [ "$rog" == "Y" ]; then
|
if [ "$rog" == "Y" ]; then
|
||||||
execute_script "rog.sh"
|
execute_script "rog.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# re-install rofi-wayland
|
# re-install rofi-wayland
|
||||||
execute_script "rofi-wayland.sh"
|
execute_script "rofi-wayland.sh"
|
||||||
execute_script "InputGroup.sh"
|
execute_script "InputGroup.sh"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user