Skip to content

Commit

Permalink
fix(polybar): ensure integer in task urgency comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnorrby committed Jul 9, 2021
1 parent e36d6b3 commit 9c2751b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/task/task_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ urgency_wrapper() {
return
fi
urgency=$(task _get "${next_task}.urgency")
if [ "$urgency" -ge 8 ]; then
if [ "${urgency%.*}" -ge 8 ]; then
echo "%{u#f07178}%{+u}$1%{u-}"
elif [ "$urgency" -ge 5 ]; then
elif [ "${urgency%.*}" -ge 5 ]; then
echo "%{u#c3e88d}%{+u}$1%{u-}"
else
echo "$1"
Expand Down

0 comments on commit 9c2751b

Please sign in to comment.