Skip to content

Commit

Permalink
Merge pull request #69 from JaKooLit/05-2024
Browse files Browse the repository at this point in the history
Moving the 05-2024 to Development
  • Loading branch information
JaKooLit committed May 10, 2024
2 parents 08fd8b2 + a105abc commit ec4f653
Show file tree
Hide file tree
Showing 9 changed files with 221 additions and 40 deletions.
7 changes: 7 additions & 0 deletions CHANGELOGS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## Changelogs

## 10 May 2024
- added wallust-git and remove python-pywal for migration to wallust on Hyprland-Dots v2.2.11

## 07 May 2024
- added ags.sh for upcoming ags overview for next Hyprland-Dots release. Will be installed form source
- added manual installation of waybar since Debian is very slow in updating their packages

## 03 May 2024
- Bump swww to v0.9.5
- added python3-pyquery for new weather-waybar python based on Hyprland-Dots
Expand Down
5 changes: 0 additions & 5 deletions install-scripts/00-hypr-pkgs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,4 @@ done
## making brightnessctl work
sudo chmod +s $(which brightnessctl) 2>&1 | tee -a "$LOG" || true

## Installing pywal colors
printf "\n%s - Installing Pywal.... \n" "${NOTE}"

sudo pip3 install pywal --break-system-packages 2>&1 | tee -a "$LOG"

clear
2 changes: 1 addition & 1 deletion install-scripts/hyprland.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


#specific branch or release
hyprland_tag="v0.39.1"
hyprland_tag="v0.40.0"

## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located
Expand Down
2 changes: 1 addition & 1 deletion install-scripts/hyprlock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ for PKG1 in "${lock[@]}"; do
fi
done

# Check if hyprlidle folder exists and remove it
# Check if hyprlock folder exists and remove it
if [ -d "hyprlock" ]; then
printf "${NOTE} Removing existing hyprlock folder...\n"
rm -rf "hyprlock"
Expand Down
65 changes: 65 additions & 0 deletions install-scripts/hyprwayland-scanner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#!/bin/bash
# 💫 https://github.com/JaKooLit 💫 #
# hyprwayland-scanner - One depency from Hyprland v0.40.0#

scan_depend=(
libpugixml-dev
)
#specific branch or release
scan_tag="v0.3.6"

## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Change the working directory to the parent directory of the script
PARENT_DIR="$SCRIPT_DIR/.."
cd "$PARENT_DIR" || exit 1

source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"

# Set the name of the log file to include the current date and time
LOG="Install-Logs/install-$(date +%d-%H%M%S)_hyprlang.log"
MLOG="install-$(date +%d-%H%M%S)_hyprwayland-scanner.log"

##
# Installation of dependencies
printf "\n%s - Installing hyprwayland-scanner dependencies.... \n" "${NOTE}"

for PKG1 in "${scan_depend[@]}"; do
install_package "$PKG1" 2>&1 | tee -a "$LOG"
if [ $? -ne 0 ]; then
echo -e "\e[1A\e[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
exit 1
fi
done

printf "${NOTE} Installing hyprwayland-scanner...\n"

# Check if hyprwayland-scanner folder exists and remove it
if [ -d "hyprwayland-scanner" ]; then
printf "${NOTE} Removing existing hyprwayland-scanner folder...\n"
rm -rf "hyprwayland-scanner"
fi

# Clone and build hyprlang
printf "${NOTE} Installing hyprwayland-scanner...\n"
if git clone --recursive -b $scan_tag https://github.com/hyprwm/hyprwayland-scanner.git; then
cd hyprwayland-scanner || exit 1
cmake -DCMAKE_INSTALL_PREFIX=/usr -B build
cmake --build build -j `nproc`
if sudo cmake --install build 2>&1 | tee -a "$MLOG" ; then
printf "${OK} hyprwayland-scanner installed successfully.\n" 2>&1 | tee -a "$MLOG"
else
echo -e "${ERROR} Installation failed for hyprwayland-scanner." 2>&1 | tee -a "$MLOG"
fi
#moving the addional logs to Install-Logs directory
mv $MLOG ../Install-Logs/ || true
cd ..
else
echo -e "${ERROR} Download failed for hyprwayland-scanner. Please check log." 2>&1 | tee -a "$LOG"
fi


clear

32 changes: 0 additions & 32 deletions install-scripts/pywal.sh

This file was deleted.

62 changes: 62 additions & 0 deletions install-scripts/wallust.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/bin/bash
# 💫 https://github.com/JaKooLit 💫 #
# wallust - pywal colors replacment #

depend=(
imagemagick
)

#specific branch or release
wal_tag="dev"

## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Change the working directory to the parent directory of the script
PARENT_DIR="$SCRIPT_DIR/.."
cd "$PARENT_DIR" || exit 1

source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"

# Set the name of the log file to include the current date and time
LOG="Install-Logs/install-$(date +%d-%H%M%S)_wallust.log"
MLOG="install-$(date +%d-%H%M%S)_wallust.log"

# Installing depencies
for PKG1 in "${depend[@]}"; do
install_package "$PKG1" 2>&1 | tee -a "$LOG"
if [ $? -ne 0 ]; then
echo -e "\033[1A\033[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
exit 1
fi
done

##
printf "${NOTE} Installing wallust from dev branch...\n"

# Check if folder exists and remove it
if [ -d "wallust" ]; then
printf "${NOTE} Removing existing wallust folder...\n"
rm -rf "wallust"
fi

# Clone and build wallust
printf "${NOTE} Installing wallust...\n"
if git clone --depth 1 -b $wal_tag https://codeberg.org/explosion-mental/wallust.git; then
cd wallust || exit 1
make
if sudo cmake --install 2>&1 | tee -a "$MLOG" ; then
printf "${OK} wallust installed successfully.\n" 2>&1 | tee -a "$MLOG"
else
echo -e "${ERROR} Installation failed for wallust." 2>&1 | tee -a "$MLOG"
fi
#moving the addional logs to Install-Logs directory
mv $MLOG ../Install-Logs/ || true
cd ..
else
echo -e "${ERROR} Download failed for wallust." 2>&1 | tee -a "$LOG"
fi

clear

82 changes: 82 additions & 0 deletions install-scripts/waybar-git.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/bin/bash
# 💫 https://github.com/JaKooLit 💫 #
# waybar - from source #

waybar=(
cmake
meson
scdoc
wayland-protocols
clang-tidy
gobject-introspection
libdbusmenu-gtk3-dev
libevdev-dev
libfmt-dev
libgirepository1.0-dev
libgtk-3-dev
libgtkmm-3.0-dev
libinput-dev
libjsoncpp-dev
libmpdclient-dev
libnl-3-dev
libnl-genl-3-dev
libpulse-dev
libsigc++-2.0-dev
libspdlog-dev
libwayland-dev
scdoc
upower
libxkbregistry-dev
)


## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

# Change the working directory to the parent directory of the script
PARENT_DIR="$SCRIPT_DIR/.."
cd "$PARENT_DIR" || exit 1

source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"

# Set the name of the log file to include the current date and time
LOG="Install-Logs/install-$(date +%d-%H%M%S)_waybar-gt.log"
MLOG="install-$(date +%d-%H%M%S)_waybar-git.log"

# Installation of dependencies
printf "\n%s - Installing waybar-git dependencies.... \n" "${NOTE}"

for PKG1 in "${waybar[@]}"; do
install_package "$PKG1" 2>&1 | tee -a "$LOG"
if [ $? -ne 0 ]; then
echo -e "\e[1A\e[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
exit 1
fi
done

# Check if waybar folder exists and remove it
if [ -d "waybar" ]; then
printf "${NOTE} Removing existing waybar folder...\n"
rm -rf "waybar"
fi

# Clone and build waybar from source
printf "${NOTE} Installing waybar...\n"
if git clone https://github.com/Alexays/Waybar; then
cd Waybar || exit 1
meson build
if sudo ninja -C build install 2>&1 | tee -a "$MLOG" ; then
printf "${OK} waybar-git installed successfully.\n" 2>&1 | tee -a "$MLOG"
else
echo -e "${ERROR} Installation failed for waybar-git." 2>&1 | tee -a "$MLOG"
fi
#moving the addional logs to Install-Logs directory
mv $MLOG ../Install-Logs/ || true
cd ..
else
echo -e "${ERROR} Download failed for waybar-git" 2>&1 | tee -a "$LOG"
fi

clear

4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,16 @@ execute_script "fonts.sh"
execute_script "swappy.sh"
execute_script "swww.sh"
execute_script "rofi-wayland.sh"
execute_script "pywal.sh"
execute_script "wallust.sh"
execute_script "force-install.sh"
execute_script "hyprlang.sh"
execute_script "hyprlock.sh"
execute_script "hyprcursor.sh"
execute_script "hypridle.sh"
execute_script "hyprwayland-scanner.sh"
execute_script "hyprland.sh"
execute_script "hypr-eco.sh"
execute_script "waybar-git.sh"


#execute_script "cliphist.sh"
Expand Down

0 comments on commit ec4f653

Please sign in to comment.