mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compensate for swayosd not liking a 0.00 progress meter
This commit is contained in:
@@ -5,8 +5,11 @@
|
|||||||
|
|
||||||
percent="$1"
|
percent="$1"
|
||||||
|
|
||||||
|
progress="$(awk -v p="$percent" 'BEGIN{printf "%.2f", p/100}')"
|
||||||
|
[[ "$progress" == "0.00" ]] && progress="0.01"
|
||||||
|
|
||||||
swayosd-client \
|
swayosd-client \
|
||||||
--monitor "$(hyprctl monitors -j | jq -r '.[]|select(.focused==true).name')" \
|
--monitor "$(hyprctl monitors -j | jq -r '.[]|select(.focused==true).name')" \
|
||||||
--custom-icon display-brightness \
|
--custom-icon display-brightness \
|
||||||
--custom-progress "$(awk -v p="$percent" 'BEGIN{printf "%.2f", p/100}')" \
|
--custom-progress "$progress" \
|
||||||
--custom-progress-text "${percent}%"
|
--custom-progress-text "${percent}%"
|
||||||
|
|||||||
Reference in New Issue
Block a user