Skip to content

Commit

Permalink
fix(waybar-updates): proper color fix
Browse files Browse the repository at this point in the history
  • Loading branch information
savely-krasovsky committed Apr 21, 2024
1 parent 99c71ad commit 9ba5e6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions waybar-updates
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ done

function check_pacman_updates() {
if [ "$1" == "online" ]; then
pacman_updates=$(checkupdates)
pacman_updates=$(checkupdates --nocolor)
elif [ "$1" == "offline" ]; then
pacman_updates=$(checkupdates --nosync)
pacman_updates=$(checkupdates --nosync --nocolor)
fi

pacman_updates_checksum=$(echo "$pacman_updates" | sha256sum)
Expand Down Expand Up @@ -254,7 +254,7 @@ while true; do
fi
fi
if [ "$total_updates_count" -gt 0 ]; then
json $total_updates_count "pending-updates" "$(echo -e "$tooltip" | head -n "$packages_limit" | sed -e 's/\x1b\[[0-9;]*m//g')" "pending-updates"
json $total_updates_count "pending-updates" "$(echo -e "$tooltip" | head -n "$packages_limit")" "pending-updates"
else
json "" "updated" "$(gettext "waybar-updates" "System is up to date")" "updated"
fi
Expand Down

0 comments on commit 9ba5e6f

Please sign in to comment.