dotfiles/.config/waybar/modules/update-check.sh

8 lines
236 B
Bash
Executable file

#!/bin/bash
updates=$(($(checkupdates 2>/dev/null | wc -l) + $(paru -Qum 2>/dev/null | wc -l)))
if [ "$updates" -gt 0 ]; then
echo '{"text":"⟳","class":"updates-available"}'
else
echo '{"text":"⟳","class":"no-updates"}'
fi