From 43f821b2450aacfc818a4b8ffec52acfc6bc799f Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 11 Mar 2024 12:30:11 +0100 Subject: fix POSIX compatibility --- .local/share/mode/mode | 4 ++-- .local/share/mode/plug.d/50_accent | 4 ++-- .local/share/mode/reload.d/brave | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to '.local/share/mode') diff --git a/.local/share/mode/mode b/.local/share/mode/mode index 83228f1..1c70c2a 100755 --- a/.local/share/mode/mode +++ b/.local/share/mode/mode @@ -69,7 +69,7 @@ switch() { done # join all processes started above - wait $(jobs -rp) + wait $(jobs -p) } # reload programs using scripts in reload.d @@ -81,7 +81,7 @@ reload() { "$reload_function" & done - wait $(jobs -rp) + wait $(jobs -p) } # main program argument parser (later argument always take priority) diff --git a/.local/share/mode/plug.d/50_accent b/.local/share/mode/plug.d/50_accent index 6e0aa73..2a8a113 100644 --- a/.local/share/mode/plug.d/50_accent +++ b/.local/share/mode/plug.d/50_accent @@ -4,11 +4,11 @@ # do not generate accent color if already explicitly defined by theme [ -n "$accent" ] && return -[ "$mode" == "light" ] && { +[ "$mode" = "light" ] && { accent="$color15" accent_text="$color0" } -[ "$mode" == "dark" ] && { +[ "$mode" = "dark" ] && { accent="$(mix_rgb $bg $color0 0.5)" accent_text="$fg" } diff --git a/.local/share/mode/reload.d/brave b/.local/share/mode/reload.d/brave index beb0a91..6f6caeb 100644 --- a/.local/share/mode/reload.d/brave +++ b/.local/share/mode/reload.d/brave @@ -74,7 +74,7 @@ script "chrome.send(\"setBraveThemeType\", [$([ "$mode" = "light" ] && echo "2" # cleanup delete "$url_base/window" delete "$url_base" -kill $(jobs -rp) -wait $(jobs -rp) +kill $(jobs -p) +wait $(jobs -p) # reference: https://w3c.github.io/webdriver/ -- cgit v1.2.3