Go to file
Paulo e1af4e1985
doc: add go install to readme
2023-10-15 23:36:47 -03:00
.gitea doc: add screenshot 2023-07-28 04:04:46 -03:00
fetch ref: improve os name code 2023-07-28 04:27:32 -03:00
.gitignore init: hello F 2023-07-19 10:34:47 -03:00
Makefile feat: add build tag to enable or disable pacman cron checker 2023-07-27 21:40:28 -03:00
README.md doc: add go install to readme 2023-10-15 23:36:47 -03:00
colors.go ref: remove unused Bold 2023-07-26 20:23:14 -03:00
go.mod init: hello F 2023-07-19 10:34:47 -03:00
icons.go fix: proper icons get 2023-07-20 11:35:02 -03:00
main.go feat: improve formatting 2023-07-20 11:37:52 -03:00
show.go ref: add more spaces 2023-07-20 09:25:54 -03:00
utils.go feat: pkgs =) 2023-07-20 11:13:28 -03:00

README.md

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