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}%"