diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-03-11 12:30:11 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-03-11 12:30:11 +0100 |
commit | 43f821b2450aacfc818a4b8ffec52acfc6bc799f (patch) | |
tree | 583e813c26d31173fca878308d309bb21dd061a8 /.local/share/mode | |
parent | fb6fe95482b3f9c9723188f7bdb30b4e63b658e5 (diff) |
fix POSIX compatibility
Diffstat (limited to '.local/share/mode')
-rwxr-xr-x | .local/share/mode/mode | 4 | ||||
-rw-r--r-- | .local/share/mode/plug.d/50_accent | 4 | ||||
-rw-r--r-- | .local/share/mode/reload.d/brave | 4 |
3 files changed, 6 insertions, 6 deletions
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/ |