* If on XPS, enable XPS mute mic key with LED and fallback to original mic mute flow * fix hardcode of alsa card 0 to resolved id * Extract omarchy-hyprland-monitor-focused * Extract dedicated xps mute script --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
16 lines
428 B
Bash
Executable File
16 lines
428 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Display brightness level using SwayOSD on the current monitor.
|
|
# Usage: omarchy-swayosd-brightness <percent>
|
|
|
|
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)" \
|
|
--custom-icon display-brightness \
|
|
--custom-progress "$progress" \
|
|
--custom-progress-text "${percent}%"
|