No description
Find a file
2019-03-26 01:45:52 -05:00
bin Move binary file to bin dir 2019-03-26 01:39:54 -05:00
src Rewrite upcheck in Rust. 2019-03-26 01:39:14 -05:00
Cargo.toml Rewrite upcheck in Rust. 2019-03-26 01:39:14 -05:00
README.md Update instructions 2019-03-26 01:45:52 -05:00
upcheck.service Initial commit. 2019-03-25 21:09:50 -05:00
upcheck.timer Initial commit. 2019-03-25 21:09:50 -05:00

upcheck

Checker for ArchLinux available updates and send it via libnotify writen in Rust.

How to install and get it working?

First install pacman-contrib and libnotify from ArchLinux repos:

# pacman -Syu --needed pacman-contrib libnotify

Installation is easy, put the bin/upcheck binary in $HOME/.local/bin/, then put the upcheck.service and upcheck.timer into $HOME/.config/systemd/user/ and enable/start upcheck.timer with the command systemctl --user enable upcheck.timer && systemctl --user start upcheck.timer

Important note: you need a notifications server if you aren't using Cinnamon, Deepin, Enlightenment, GNOME, GNOME Flashback or KDE Plasma.

Building yourself

If you don't want to use the provide binary, you can compile it following the next commands: $ git clone https://gitlab.com/edu4rdshl/upcheck.git $ cd upcheck $ cargo build --release $ cp target/release/upcheck $HOME/.local/bin/ Then continue with installation.

How it works?

It use the checkupdates bash script provided by the pacman-contrib package and the notify-send binary provided by the libnotify package. First, it exec the command checkupdates and save the output in a variable, if the variable is not an empty string, mean that there are available updates and then send the variable content using libnotify.

What is the purpose?

It doesn't have any special purpose, it was created only trying to avoid the user manual interaction of checking available updates everytime and show it when are available.

How can I change the execution frequency time?

Modify the upcheck.timer unit and change the OnUnitActiveSec= option to what you want. See man 7 systemd.time for the time specifications.

That is all.