
new file: bspwm/bspwmrc new file: neofetch/config.conf new file: nvim/init.vim new file: polybar/config new file: polybar/launch.sh new file: polybar/scripts/bat_toggle.sh new file: polybar/scripts/brightnessctl.sh new file: polybar/scripts/bt-status.sh new file: polybar/scripts/coins.svg new file: polybar/scripts/openvpn-status.sh new file: polybar/scripts/pcrypto.py new file: polybar/scripts/pulseaudio-control.bash new file: polybar/scripts/spotify_status.py new file: polybar/scripts/xbps-updates.sh new file: polybar/scripts/xbps-updates.sh.bkp
12 lines
271 B
Bash
Executable File
12 lines
271 B
Bash
Executable File
#!/bin/sh
|
|
|
|
updates=$(xbps-install -Mun 2> /dev/null | wc -l)
|
|
|
|
if [ -n "$updates" ] && [ "$updates" -eq 1 ]; then
|
|
echo "$updates XBPS update available"
|
|
elif [ -n "$updates" ] && [ "$updates" -gt 1 ]; then
|
|
echo "$updates XBPS updates available"
|
|
else
|
|
echo ""
|
|
fi
|