/ de-omarchy / bin / omarchy-brightness-keyboard-mute
swadhinbiswas Initial de-omarchy: Omarchy UI layer for Arch-based distros · 8/22/2026
9f393b2
15 lines · 415 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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