f/README.md

693 B

F

system fetcher or something.

does not have config, change the code or something idk.

screenshot

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