From 25451f4a03ccbd7e5b5898ebd73ff918a613ab57 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 19 Jan 2026 17:55:38 -0400 Subject: [PATCH] Compensate for swayosd not liking a 0.00 progress meter --- bin/omarchy-swayosd-brightness | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-swayosd-brightness b/bin/omarchy-swayosd-brightness index 6afc251a..697be162 100755 --- a/bin/omarchy-swayosd-brightness +++ b/bin/omarchy-swayosd-brightness @@ -5,8 +5,11 @@ percent="$1" +progress="$(awk -v p="$percent" 'BEGIN{printf "%.2f", p/100}')" +[[ "$progress" == "0.00" ]] && progress="0.01" + swayosd-client \ --monitor "$(hyprctl monitors -j | jq -r '.[]|select(.focused==true).name')" \ --custom-icon display-brightness \ - --custom-progress "$(awk -v p="$percent" 'BEGIN{printf "%.2f", p/100}')" \ + --custom-progress "$progress" \ --custom-progress-text "${percent}%"