Initial commit

This commit is contained in:
Patrick Alvin Alcala 2025-06-26 16:53:43 +08:00
commit 209ba130c0
4852 changed files with 1517959 additions and 0 deletions

25
.config/ml4w/version/update.sh Executable file
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