From 3cb0f1c2df4b1a36e7ac446d9a9b0d32e546a7a0 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Sun, 18 Jun 2023 20:46:15 -0400 Subject: [PATCH] test before setting keyboard lights --- configs/shell/profile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configs/shell/profile b/configs/shell/profile index 06ef4e4..86aa111 100644 --- a/configs/shell/profile +++ b/configs/shell/profile @@ -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