mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
15 lines
415 B
Bash
Executable File
15 lines
415 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Set the mic-mute indicator LED on laptops that expose a platform::micmute LED node.
|
|
# omarchy:args=<on|off>
|
|
|
|
if [[ -e /sys/class/leds/platform::micmute/brightness ]]; then
|
|
case "$1" in
|
|
on) value=1 ;;
|
|
off) value=0 ;;
|
|
*) echo "Usage: $(basename "$0") <on|off>" >&2; exit 1 ;;
|
|
esac
|
|
|
|
brightnessctl --device="platform::micmute" set "$value" >/dev/null 2>&1 || true
|
|
fi
|