diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-01-08 21:02:00 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2026-01-08 21:02:00 -0500 |
| commit | a35a1c4e980081566287dd6e2510f658f046cad1 (patch) | |
| tree | 40e31c0cbee8edc0986698880824cfd07026c5c4 /config/hypr/scripts/KooLsDotsUpdate.sh | |
| parent | b32d5df54895bc89f139592cb2116ebeeabe73dd (diff) | |
Fixing hyprland-dots scripts
- TouchPad.sh never expands $TOUCHPAD_ENABLED
- (and doesn’t source the file that defines it), so the toggle command is
- currently doesn't work.
- Volume.sh has multiple microphone-control bugs
- bad pamixer arguments, typoed function name, invalid notification payloads
- that break mic toggling and volume feedback.
- DarkLight.sh wipes the Qt theme paths each run
- because the qt5ct/qt6ct palette variables are commented out.
- KooLsDotsUpdate.sh contains a malformed notify-send string that
- crashes the script when no local version is detected.
- Distro_update.sh runs sudo apt upgrade outside the kitty window,
- so the Debian/Ubuntu flow never finishes inside the terminal.
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/DarkLight.sh
modified: config/hypr/scripts/Distro_update.sh
modified: config/hypr/scripts/KooLsDotsUpdate.sh
modified: config/hypr/scripts/TouchPad.sh
modified: config/hypr/scripts/Volume.sh
Diffstat (limited to 'config/hypr/scripts/KooLsDotsUpdate.sh')
| -rwxr-xr-x | config/hypr/scripts/KooLsDotsUpdate.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/hypr/scripts/KooLsDotsUpdate.sh b/config/hypr/scripts/KooLsDotsUpdate.sh index 51277ab1..a49f5430 100755 --- a/config/hypr/scripts/KooLsDotsUpdate.sh +++ b/config/hypr/scripts/KooLsDotsUpdate.sh @@ -5,12 +5,12 @@ # Local Paths local_dir="$HOME/.config/hypr" iDIR="$HOME/.config/swaync/images/" -local_version=$(ls $local_dir/v* 2>/dev/null | sort -V | tail -n 1 | sed 's/.*v\(.*\)/\1/') +local_version=$(find "$local_dir" -maxdepth 1 -name 'v*' -printf '%f\n' 2>/dev/null | sort -V | tail -n 1 | sed 's/^v//') KooL_Dots_DIR="$HOME/Hyprland-Dots" # exit if cannot find local version if [ -z "$local_version" ]; then - notify-send -i "$iDIR/error.png" "ERROR "!?!?!!"" "Unable to find KooL's dots version . exiting.... " + notify-send -i "$iDIR/error.png" 'ERROR !?!?!!' "Unable to find KooL's dots version. Exiting." exit 1 fi @@ -19,7 +19,7 @@ branch="main" github_url="https://github.com/JaKooLit/Hyprland-Dots/tree/$branch/config/hypr/" # Fetch the version from GitHub URL - KooL's dots -github_version=$(curl -s $github_url | grep -o 'v[0-9]\+\.[0-9]\+\.[0-9]\+' | sort -V | tail -n 1 | sed 's/v//') +github_version=$(curl -s "$github_url" | grep -o 'v[0-9]\+\.[0-9]\+\.[0-9]\+' | sort -V | tail -n 1 | sed 's/v//') # Cant find GitHub URL - KooL's dots version if [ -z "$github_version" ]; then @@ -39,13 +39,13 @@ else case "$response" in "action1") - if [ -d $KooL_Dots_DIR ]; then + if [ -d "$KooL_Dots_DIR" ]; then if ! command -v kitty &> /dev/null; then notify-send -i "$iDIR/error.png" "E-R-R-O-R" "Kitty terminal not found. Please install Kitty terminal." exit 1 fi kitty -e bash -c " - cd $KooL_Dots_DIR && + cd \"$KooL_Dots_DIR\" && git stash && git pull && ./copy.sh && @@ -59,7 +59,7 @@ else fi kitty -e bash -c " git clone --depth=1 https://github.com/JaKooLit/Hyprland-Dots.git $KooL_Dots_DIR && - cd $KooL_Dots_DIR && + cd \"$KooL_Dots_DIR\" && chmod +x copy.sh && ./copy.sh && notify-send -u critical -i "$iDIR/ja.png" 'Update Completed:' 'Kindly log out and relogin to take effect' |
