aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/personal/bar/status
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.local/bin/personal/bar/status')
-rwxr-xr-xscripts/.local/bin/personal/bar/status12
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)")\
"