Skip to content

collins-lagat/arch-updates-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arch-updates-rs

A simple Rust program that checks for Arch Linux updates using checkupdates and displays them in Waybar.

Additionally, it detects when pacman and changes the mode to checking. It also schedules a check for updates every 5 seconds. This is to prevent waybar from displaying that their are available updates when they are none.

Requirements

  • pacman-contrib - Arch Linux package that provides checkupdates. This is strictly required.
  • waybar - A status bar for Wayland. Optional is you have another way to display the output of the program.

Installation

  1. Build the program:
cargo build --release
  1. Move the executable to bin folder in your PATH:
mv target/release/arch-updates-rs ~/.local/bin

Configuration

You can configure the program by editing the ~/.config/hypr/arch-updates-rs.toml file. The default configuration is as follows:

inverval_in_seconds = 1200
warning_threshold = 25
critical_threshold = 100

The inverval_in_seconds option sets the interval in seconds between each check for updates.

Acknowledgements

This project was inspired by arch-update, which is a GNOME Shell extension that shows the available updates for Arch Linux. I wanted to have as similar experience as the GNOME Shell extension, but in whatever DE I wanted.

About

ArchLinux updates indicator for waybar.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages