diff --git a/bin/omarchy-theme-set-keyboard b/bin/omarchy-theme-set-keyboard index 6c237a8e74..88abd4c7c4 100755 --- a/bin/omarchy-theme-set-keyboard +++ b/bin/omarchy-theme-set-keyboard @@ -2,3 +2,4 @@ omarchy-theme-set-keyboard-asus-rog omarchy-theme-set-keyboard-f16 +omarchy-theme-set-keyboard-razer diff --git a/bin/omarchy-theme-set-keyboard-razer b/bin/omarchy-theme-set-keyboard-razer new file mode 100755 index 0000000000..4832f205b1 --- /dev/null +++ b/bin/omarchy-theme-set-keyboard-razer @@ -0,0 +1,8 @@ +#!/bin/bash + +RAZER_THEME=~/.config/omarchy/current/theme/keyboard.rgb + +if omarchy-cmd-present razer-cli && [[ -f $RAZER_THEME ]]; then + color=$(cat "$RAZER_THEME" | tr -d '#') + razer-cli --effect static --brightness 100 --color $color +fi