Update all dotfiles

This commit is contained in:
2025-05-22 17:56:05 -05:00
parent 0280a88a7b
commit 4bb042584b
1651 changed files with 60533 additions and 2672 deletions

View File

@ -0,0 +1,25 @@
#!/bin/bash
# ------------------------------------------------------
# Check for updates
# ------------------------------------------------------
source ~/.config/ml4w/version/library.sh
# Get latest tag from GitHub
get_latest_release() {
v_online=$(curl --silent "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=ml4w-hyprland")
v_full_online=$(grep -m 1 'pkgver' <<< $v_online | sed 's/^$/pkgver/')
echo ${v_full_online/pkgver=/}
}
# Check for internet connection
if ping -q -c 1 -W 1 google.com >/dev/null; then
version=$(cat ~/.config/ml4w/version/name)
online=$(get_latest_release "mylinuxforwork/hyprland-dotfiles")
echo $version "<" $online
testvercomp $version $online "<"
else
# Network is down
echo "1"
fi