diff options
author | davidpkj <davidpenkow1@gmail.com> | 2023-08-27 16:36:12 +0200 |
---|---|---|
committer | davidpkj <davidpenkow1@gmail.com> | 2023-08-27 16:36:12 +0200 |
commit | 8ec89f25e98c83bd348856f767ae2d193583d91a (patch) | |
tree | ef3fc77835de77bde0b74d8e6146932843ac8fa5 /scripts/.local/bin/personal/bar/status | |
parent | d6c6ff9997cc7d8b48a77dd8880d2cab3481d462 (diff) |
Reorganize scripts
Diffstat (limited to 'scripts/.local/bin/personal/bar/status')
-rwxr-xr-x | scripts/.local/bin/personal/bar/status | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/.local/bin/personal/bar/status b/scripts/.local/bin/personal/bar/status index e6dbbb9..da46bf0 100755 --- a/scripts/.local/bin/personal/bar/status +++ b/scripts/.local/bin/personal/bar/status @@ -1,5 +1,7 @@ #!/bin/dash +# echo 0; exit 0 + # loads colors . ~/.cache/wal/colors.sh @@ -7,13 +9,13 @@ SEPARATOR=" " # default color button use() { - printf "%s^c%s^^b%s^ %s ^b%s^ %s ^b%s^" "$SEPARATOR" "$background" "$color1" "$1" "$color9" "$2" "$background" + printf "%s^c%s^^b%s^ %s ^b%s^ %s ^b%s^" "$SEPARATOR" "$background" "$primary" "$1" "$accent" "$2" "$background" } # show in specified color if specified condition is true usecolorif() { if [ "$3" = "1" ]; then - printf "%s^c%s^^b%s^ %s ^c%s^^b%s^ %s ^b%s^" "$SEPARATOR" "$color1" "$background" "$1" "$color9" "$color0" "$2" "$background" + printf "%s^c%s^^b%s^ %s ^c%s^^b%s^ %s ^b%s^" "$SEPARATOR" "$primary" "$background" "$1" "$accent" "$background" "$2" "$background" else use "$1" "$2" fi @@ -28,11 +30,11 @@ useif() { # actual string echo "\ -$(useif "" "$(updates read)")\ +$(useif "" "$(updates read)")\ $(useif "" "$(mute shortstatus)")\ $(useif "" "$(volume)")\ -$(useif "說" "$(network)")\ +$(useif "" "$(network)")\ $(use "" "$(load) | $(temp)")\ $(use "" "$(battery)")\ -$(use "" "$(datetime)")\ +$(use "" "$(datetime)")\ " |