move $path definition from apply-color* scripts to helper script

This commit is contained in:
2025-11-15 02:00:43 +01:00
parent 163cfda11e
commit 94be67bf43
16 changed files with 14 additions and 32 deletions

View File

@@ -1,6 +1,5 @@
#!/bin/bash
path=$(dirname "$(readlink -f "$0")")
[ -f "$HOME/.local/snippets/apply-color-helper" ] || {
echo "Missing helper script: $HOME/.local/snippets/apply-color-helper"
exit 1
@@ -15,4 +14,3 @@ sed -i -E "s/^(\s*active-color\s+\"#)([0-9A-Fa-f]{6})(\")/\1${colorHex}\3/" "$fi
}
log_success "niri"