aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/RainbowBorders-low-cpu.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/UserScripts/RainbowBorders-low-cpu.sh')
-rwxr-xr-xconfig/hypr/UserScripts/RainbowBorders-low-cpu.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/hypr/UserScripts/RainbowBorders-low-cpu.sh b/config/hypr/UserScripts/RainbowBorders-low-cpu.sh
index 89db7929..388a771b 100755
--- a/config/hypr/UserScripts/RainbowBorders-low-cpu.sh
+++ b/config/hypr/UserScripts/RainbowBorders-low-cpu.sh
@@ -194,7 +194,11 @@ apply_border_value() {
local out angle colors_str c lua_colors expr
local -a colors=()
- if out="$(hyprctl keyword "$option" $value 2>&1)"; then
+ # Note: under Lua config mode hyprctl may exit 0 while still printing
+ # "keyword can't work with non-legacy parsers", so check output too.
+ out="$(hyprctl keyword "$option" $value 2>&1)"
+ rc=$?
+ if [[ $rc -eq 0 && "$out" != *"non-legacy parsers"* && "$out" != *"Use eval"* && "$out" != *"error"* && "$out" != *"invalid"* ]]; then
return 0
fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage