F
system fetcher or something.
does not have config, change the code or something idk.
![screenshot](https://code.db.cafe/pauloo27/f/raw/commit/a907c20129e7/.gitea/tirotela.png)
Simple install
go install code.db.cafe/pauloo27/f@latest
Build
make build
Show Pacman Updates
Create a cron that will check for updates and write to a file in
~/.cache/available_updates
:
#!/bin/sh
FILE_PATH=/home/user/.cache/available_updates
if [ "$1" = "upgraded" ]; then
echo "0" > $FILE_PATH
else
yay -Sy
updates_count="$(yay -Qun | grep -v 'Avoid running yay as root' -c)"
echo $updates_count > $FILE_PATH
fi
crontab -e
*/30 * * * * /path/to/script/check-updates.sh
And build with:
make build-updates