Cleaned up updates in polybar.
This commit is contained in:
parent
26b6361793
commit
38371d0519
@ -103,7 +103,7 @@ bottom = false
|
||||
;border-right-size = 16
|
||||
;unused modules - mpd xbacklight backlight-acpi alsa
|
||||
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
|
||||
|
||||
; TRAY MANAGEMENT
|
||||
@ -388,11 +388,15 @@ label = %percentage_used%%
|
||||
|
||||
[module/updates-pacman]
|
||||
type = custom/script
|
||||
format-prefix=" "
|
||||
format-prefix-foreground = ${colors.bright_green}
|
||||
exec = ~/.dotfiles/polybar/polybar-scripts/updates-pacman/updates-pacman.sh
|
||||
interval = 600
|
||||
|
||||
[module/updates-aurhelper]
|
||||
type = custom/script
|
||||
format-prefix=" "
|
||||
format-prefix-foreground = ${colors.bright_green}
|
||||
exec = ~/.dotfiles/polybar/polybar-scripts/updates-aurhelper/updates-aurhelper.sh
|
||||
interval = 600
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ if ! updates=$(yay -Qum 2> /dev/null | wc -l); then
|
||||
fi
|
||||
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
echo "# $updates"
|
||||
echo "$updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
|
||||
@ -5,7 +5,7 @@ if ! updates=$(checkupdates 2> /dev/null | wc -l ); then
|
||||
fi
|
||||
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
echo "# $updates"
|
||||
echo "$updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user