From 509a2eba61120e27d31e317a5247f6a7f251e030 Mon Sep 17 00:00:00 2001 From: "Pietro F. Fontana" Date: Wed, 7 Nov 2018 22:01:42 +0100 Subject: [PATCH] Update README, add AUR helpers as dependencies --- README.md | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 8fea192..1665b31 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # update-notifier Script to check for pacman and AUR updates and notify user about it. Can be called with conky, autostart script or cron. - - This script will notify the user as soon as updates are available. It can use the following AUR helpers as backend: yay, trizen, pacaur, yaourt. + +This script will notify the user as soon as updates are available. It can use the following AUR helpers as backend: yay, trizen, pacaur, yaourt. ## Installation @@ -9,7 +9,7 @@ update-notifier uses the "notify-send" command to notify the user about availabl ``` notify-send "Hi" ``` -If you don't you probably lack either libnotify or a notification daemon (dunst, xfce4-notification-daemon, lxqt-notificationd, etc). +If you don't you probably lack either libnotify or a notification daemon (dunst, xfce4-notification-daemon, lxqt-notificationd, etc). ### Installation from Repositories Install update-notifier from Manjaro Repositories: @@ -20,7 +20,10 @@ sudo pacman -S update-notifier ### Manual Installation First, make sure all dependencies are installed on your system: - pacman -- [yaourt](https://wiki.archlinux.org/index.php/Yaourt) +- [yay](https://github.com/Jguer/yay) (optional) +- [trizen](https://github.com/trizen/trizen) (optional) +- [pacaur](https://github.com/rmarquis/pacaur) (optional) +- [yaourt](https://wiki.archlinux.org/index.php/Yaourt) (optional) - git - libnotify (or a notification daemon - look above for a brief explanation) @@ -35,10 +38,10 @@ cd update-notifier && chmod +x update-notifier update-checker ## How to Use -update-notifier can be used in differnt ways. Here are some common examples: +update-notifier can be used in different ways. Here are some common examples: ### conky -Add the following line to the main part of your conky in order to check for updates every 7200 seconds (= 2 hours) and display a notification: +Add the following line to the main part of your conky in order to check for updates every 7200 seconds (= 2 hours) and display a notification: ``` ${execi 7200 update-notifier} ``` @@ -47,21 +50,21 @@ ${execi 7200 update-notifier} You can also put update-notifier in your crontab file. There are differnt ways to do this. If you are already using a crontab file, you know what you need to do. An example line in crontab can be (in order to check for updates every 7 hours): - ``` - * */7 * * * update-notifier - ``` - +``` +* */7 * * * update-notifier +``` + ### autostart -Autostart can vary in function and form depending on your Desktop Environment or Window Manager. Add the following command to your autostart in order to check for updates every 2.5 hours and display a notification: +Autostart can vary in function and form depending on your Desktop Environment or Window Manager. Add the following command to your autostart in order to check for updates every 2.5 hours and display a notification: ``` update-checker 2h 30m ``` Other examples are (for updating every 2 hours and 3 days): - ``` - update-checker 7200 - ``` - ``` - update-checker 3d - ``` +``` +update-checker 7200 +``` +``` +update-checker 3d +``` The default is 6 hours. This happens if you run update-checker witgout arguments.