new file: alacritty/alacritty.yml
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
This commit is contained in:
9
polybar/scripts/bat_toggle.sh
Executable file
9
polybar/scripts/bat_toggle.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
updates=$(xbps-install -Mun 2> /dev/null | wc -l)
|
||||
|
||||
if [ -n "$updates" ] && [ "$updates" -gt 0 ]; then
|
||||
echo " $updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
Reference in New Issue
Block a user