BASHrc Upgrades, Backup Script, DWM Enhancements, Hugo Helpers, Branch Controls #7

Merged
me merged 112 commits from dev into main 2025-12-01 09:50:55 -07:00
Showing only changes of commit eae66f9967 - Show all commits

View File

@@ -49,7 +49,7 @@ function volume {
fi
dir=""
typeset -i amt
amt=""
# Check if format is written text.
if [[ "$1" == "full" || "$1" == "max" ]]; then
@@ -89,11 +89,15 @@ function volume {
fi
if [[ -n "$dir" && -z "$amt" ]]; then
amt="$1"
amt=${amt//-/}
amt=${amt//+/}
fi
fi
amt=${amt//-/}
amt=${amt//+/}
# Check if format is direct volume.
if [[ -z "$dir" && -z "$amt" && -n "$1" && -z "$2" ]]; then
amt="$1"
fi
if [[ -n "$dir" && -n "$amt" ]]; then
echo "> Changing volume by '$dir$amt%'."