Extract omarchy-swayosd-client
So we don't have to manually compose it every time
This commit is contained in:
@@ -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}%"
|
||||
|
||||
Reference in New Issue
Block a user