25 lines
759 B
Bash
Executable File
25 lines
759 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if ! updates_arch=$(checkupdates 2>/dev/null | wc -l); then
|
|
updates_arch=0
|
|
fi
|
|
|
|
if ! updates_aur=$(yay -Qum 2>/dev/null | wc -l); then
|
|
# if ! updates_aur=$(paru -Qum 2> /dev/null | wc -l); then
|
|
# if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then
|
|
# if ! updates_aur=$(trizen -Su --aur --quiet | wc -l); then
|
|
#if ! updates_aur=$(pikaur -Qua 2> /dev/null | wc -l); then
|
|
# if ! updates_aur=$(rua upgrade --printonly 2> /dev/null | wc -l); then
|
|
updates_aur=0
|
|
fi
|
|
|
|
updates=$((updates_arch + updates_aur))
|
|
|
|
#if [ "$updates" -gt 0 ]; then
|
|
# echo "# $updates"
|
|
#else
|
|
# echo ""
|
|
#fi
|
|
#notify-send -i /home/$USER/.config/dunst/scripts/archlinux.svg "Доступно $updates обновлений"
|
|
echo "%{T1}%{T-} %{T2}$updates%{T-}"
|