/ de-omarchy / bin / omarchy-theme-set-keyboard-asus-rog
swadhinbiswas Initial de-omarchy: Omarchy UI layer for Arch-based distros · 8/22/2026
9f393b2
13 lines · 378 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# omarchy:summary=Apply the current theme keyboard color to ASUS ROG keyboards
# omarchy:hidden=true

ASUSCTL_THEME=$HOME/.local/state/omarchy/current/theme/keyboard.rgb

if omarchy-cmd-present asusctl && [[ -f $ASUSCTL_THEME ]]; then
  color=$(sed 's/^#//' "$ASUSCTL_THEME")
  [[ $color =~ ^[0-9A-Fa-f]{6}$ ]] || exit 0
  asusctl aura effect static -c "$color"
fi