Skip to content

Script to check for pacman ypdates and notify user about the. Can be called with conky, autostart script or cron.

License

Notifications You must be signed in to change notification settings

Ste74/update-notifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

update-notifier uses the "notify-send" command to notify the user about available updates. If you want to test, whether it works on your system execute the following command in your terminal and you should see a notification pop up:

notify-send "Hi"

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:

sudo pacman -S update-notifier

Manual Installation

First, make sure all dependencies are installed on your system:

  • pacman
  • yay (optional)
  • trizen (optional)
  • pacaur (optional)
  • yaourt (optional)
  • git
  • libnotify (or a notification daemon - look above for a brief explanation)

Then, clone this Github repository to your system with the command:

git clone https://github.com/Chrysostomus/update-notifier.git

and mark the relevant files as executables:

cd update-notifier && chmod +x update-notifier update-checker

How to Use

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:

${execi 7200 update-notifier}

cron

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

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:

update-checker 2h 30m

Other examples are (for updating every 2 hours and 3 days):

update-checker 7200
update-checker 3d

The default is 6 hours. This happens if you run update-checker witgout arguments.

About

Script to check for pacman ypdates and notify user about the. Can be called with conky, autostart script or cron.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%