X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/dcac60d9e77d8aa8b373140dbd47992434a8f8d5..5b9a654a39e6b0e14c5b0bd61227931213f4fd3f:/bin/tint2-i3status diff --git a/bin/tint2-i3status b/bin/tint2-i3status index 1132d1a..f655e6c 100755 --- a/bin/tint2-i3status +++ b/bin/tint2-i3status @@ -1,4 +1,6 @@ #!/bin/sh +. ~/bin/.check-busybox u=-u -if readlink -f $(which sed) | grep -q /busybox; then u=''; fi +check-busybox sed && u='' i3status -c ${XDG_CONFIG_HOME:-~/.config}/i3status/tint2-$1 | sed $u -e 's/fc=\(#[a-f0-9]\{3,6\}\)/span color="\1"/gi;s_/fc_/span_g' +unset check-busybox