f

command module
v0.0.0-...-a907c20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL