Extract omarchy-swayosd-client

So we don't have to manually compose it every time
This commit is contained in:
David Heinemeier Hansson
2026-04-22 13:04:30 +02:00
parent ed9ecccb21
commit edf7067797
8 changed files with 20 additions and 27 deletions
+1 -2
View File
@@ -8,8 +8,7 @@ percent="$1"
progress="$(awk -v p="$percent" 'BEGIN{printf "%.2f", p/100}')"
[[ $progress == "0.00" ]] && progress="0.01"
swayosd-client \
--monitor "$(omarchy-hyprland-monitor-focused)" \
omarchy-swayosd-client \
--custom-icon display-brightness \
--custom-progress "$progress" \
--custom-progress-text "${percent}%"