Cleaned up updates in polybar.

This commit is contained in:
Joachim Nielandt 2021-11-08 11:16:49 +01:00
parent 26b6361793
commit 38371d0519
3 changed files with 7 additions and 3 deletions

View File

@ -103,7 +103,7 @@ bottom = false
;border-right-size = 16 ;border-right-size = 16
;unused modules - mpd xbacklight backlight-acpi alsa ;unused modules - mpd xbacklight backlight-acpi alsa
modules-left = i3 modules-left = i3
modules-center = temperature battery xkeyboard memory cpu filesystem updates-aurhelper reboot-check xbacklight top-process modules-center = temperature battery xkeyboard memory cpu filesystem updates-pacman updates-aurhelper reboot-check xbacklight top-process
modules-right = net wifi0 vpn powermenu modules-right = net wifi0 vpn powermenu
; TRAY MANAGEMENT ; TRAY MANAGEMENT
@ -388,11 +388,15 @@ label = %percentage_used%%
[module/updates-pacman] [module/updates-pacman]
type = custom/script type = custom/script
format-prefix=" "
format-prefix-foreground = ${colors.bright_green}
exec = ~/.dotfiles/polybar/polybar-scripts/updates-pacman/updates-pacman.sh exec = ~/.dotfiles/polybar/polybar-scripts/updates-pacman/updates-pacman.sh
interval = 600 interval = 600
[module/updates-aurhelper] [module/updates-aurhelper]
type = custom/script type = custom/script
format-prefix=" "
format-prefix-foreground = ${colors.bright_green}
exec = ~/.dotfiles/polybar/polybar-scripts/updates-aurhelper/updates-aurhelper.sh exec = ~/.dotfiles/polybar/polybar-scripts/updates-aurhelper/updates-aurhelper.sh
interval = 600 interval = 600

View File

@ -10,7 +10,7 @@ if ! updates=$(yay -Qum 2> /dev/null | wc -l); then
fi fi
if [ "$updates" -gt 0 ]; then if [ "$updates" -gt 0 ]; then
echo "# $updates" echo "$updates"
else else
echo "" echo ""
fi fi

View File

@ -5,7 +5,7 @@ if ! updates=$(checkupdates 2> /dev/null | wc -l ); then
fi fi
if [ "$updates" -gt 0 ]; then if [ "$updates" -gt 0 ]; then
echo "# $updates" echo "$updates"
else else
echo "" echo ""
fi fi