Skip to content

kariudo/yay-polybar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ‰ Yay Polybar

Arch Linux Polybar AUR Helper: yay License: MIT

A simple Polybar script to display available Arch Linux updates with click actions for notifications and GUI-based package selection.


✨ Features

  • πŸ“¦ Update Count – Displays the total number of updates available.

  • πŸ”” Click Actions (optional):

    • Left-click β†’ Show a desktop notification listing update candidates.
    • Right-click β†’ Launch a GUI to select which packages to update, then upgrade them via yay.

πŸ“Έ Screenshots

Polybar Module

Polybar Module With Updates

GUI Package Selection

Package Update GUI


πŸ“¦ Dependencies

  • Required

    • yay – AUR helper for Arch Linux
  • Optional (for click actions)

    • i3wm – Window manager (used to run scripts)
    • notify-send – Desktop notifications
    • zenity – Graphical package selection dialog
    • termite – Terminal emulator for running updates interactively

πŸš€ Installation

  1. Clone the repository

    git clone https://github.com/yourusername/yay-polybar.git ~/code/yay-polybar
    cd ~/code/yay-polybar
  2. Make scripts executable

    chmod +x updates-arch-yay.sh notify-updates.sh prompt-updates.sh
  3. Add to Polybar config Insert the following block into your ~/.config/polybar/config.ini:

    [module/updates]
    type = custom/script
    exec = ~/code/yay-polybar/updates-arch-yay.sh
    interval = 600
    click-left = i3-msg exec ~/code/yay-polybar/notify-updates.sh
    click-right = i3-msg exec ~/code/yay-polybar/prompt-updates.sh
  4. Reload Polybar Restart Polybar or reload your config to apply the changes.


πŸ–±οΈ Usage

  • Left Click β†’ Notify Updates Displays a system notification with the list of available package updates.

  • Right Click β†’ Prompt Updates Opens a zenity dialog to select packages for updating, then triggers their upgrade via yay.


πŸͺŸ i3wm Integration

To display the update terminal as a floating, centered window in i3:

for_window [instance="^package-update$" class="^Termite$"] floating enable, move position center

πŸ’‘ Tip: With Yay Polybar, staying up-to-date on Arch Linux is just a glance and a click away!

About

Integrate the Yay AUR helper into your Polybar

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages