test before setting keyboard lights

This commit is contained in:
Adam 2023-06-18 20:46:15 -04:00
parent 61de1a5f07
commit 3cb0f1c2df

View file

@ -1,7 +1,9 @@
#!/bin/zsh
# Keyboard lights
[ -x "$(command -v g610-led)" ] && g610-led -a ff
if ! type "g610-led" &> /dev/null; then
[ -x "$(command -v g610-led)" ] && g610-led -a ff
fi
# The way life should be
export XKB_DEFAULT_OPTIONS=caps:escape