mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-01 17:07:45 +02:00
minor changes to the bar
This commit is contained in:
parent
dd86cf751d
commit
a3f3c7e7ef
@ -9,4 +9,4 @@ status=$(cat /sys/class/power_supply/"$1"/status)
|
|||||||
|
|
||||||
[ "$status" = "Charging" ] && color="#ffffff"
|
[ "$status" = "Charging" ] && color="#ffffff"
|
||||||
|
|
||||||
printf "%s%s%s\n" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not Charging/🛑/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/' ) " " ($time)"
|
printf "%s%s\n" "$(echo "$status" | sed -e "s/,//;s/Discharging/🔋/;s/Not Charging/🛑/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/' ) "
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
date +"%d %b '%y (%a) %H:%M"
|
date +"%d %b %H:%M"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
status() { \
|
status() { \
|
||||||
echo "$(memory) | $(cpu) | $(disk /) | $(volume) | $(battery BAT0) | $(internet) | $(clock)"
|
echo "$(memory)|$(cpu)|$(disk /)|$(volume)|$(battery BAT0)|$(internet)|$(clock)"
|
||||||
}
|
}
|
||||||
while :; do
|
while :; do
|
||||||
xsetroot -name "$(status | tr '\n' ' ')"
|
xsetroot -name "$(status | tr '\n' ' ')"
|
||||||
|
@ -12,4 +12,4 @@ else
|
|||||||
icon="🔉"
|
icon="🔉"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "%s %s%%\\n" "$icon" "$vol"
|
printf "%s %s\\n" "$vol" "$icon"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user