Files
omarchy/bin/omarchy-swayosd-brightness
David Heinemeier Hansson 93079858f1 Extract shared swayosd helper
2026-01-14 17:21:10 -05:00

13 lines
390 B
Bash
Executable File

#!/bin/bash
# Display brightness level using SwayOSD on the current monitor.
# Usage: omarchy-swayosd-brightness <percent>
percent="$1"
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-text "${percent}%"