-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #144 from JaKooLit/development
Development to Main - Refactor of Debian-Hyprland Script
- Loading branch information
Showing
23 changed files
with
142 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ hypr_package_2=( | |
btop | ||
cava | ||
eog | ||
fastfetch | ||
gnome-system-monitor | ||
mousepad | ||
mpv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
# This script is cleaning up previous manual installation files / directories | ||
|
||
# 22 Aug 2024 | ||
# Files to be removed rom /usr/local/bin | ||
|
||
TARGET_DIR="/usr/local/bin" | ||
|
||
# Define packages to manually remove (was manually installed previously) | ||
PACKAGES=( | ||
hyprctl | ||
hyprpm | ||
hyprland | ||
Hyprland | ||
cliphist | ||
pypr | ||
swappy | ||
waybar | ||
) | ||
|
||
## 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)_pre-clean-up.log" | ||
|
||
# Loop through the list of packages | ||
for PKG_NAME in "${PACKAGES[@]}"; do | ||
# Construct the full path to the file | ||
FILE_PATH="$TARGET_DIR/$PKG_NAME" | ||
|
||
# Check if the file exists | ||
if [[ -f "$FILE_PATH" ]]; then | ||
# Delete the file | ||
sudo rm "$FILE_PATH" | ||
echo "Deleted: $FILE_PATH" 2>&1 | tee -a "$LOG" | ||
else | ||
echo "File not found: $FILE_PATH" 2>&1 | tee -a "$LOG" | ||
fi | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.