ntfd
ntfd copied to clipboard
Use script to see update on polybar ( for arch )
Hi i use this on my polybar if this can help you
Script for polybar
`#!/bin/sh #source https://github.com/x70b1/polybar-scripts
if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then updates_arch=0 fi
if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then updates_aur=0 fi
updates=$(("$updates_arch" + "$updates_aur"))
if [ "$updates" -gt 0 ]; then echo " $updates" else echo "0" fi `
Inside polybar
type = custom/script exec = ~/.config/polybar/scripts/check-all-updates.sh interval = 1000 label = " %output%" format-foreground = #ededed format-background = #313842 format-prefix = " " format-prefix-foreground = #d7d7d7
sorry for the typo