mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-27 21:47:46 +01: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"
|
||||
|
||||
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
|
||||
|
||||
date +"%d %b '%y (%a) %H:%M"
|
||||
date +"%d %b %H:%M"
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
status() { \
|
||||
echo "$(memory) | $(cpu) | $(disk /) | $(volume) | $(battery BAT0) | $(internet) | $(clock)"
|
||||
echo "$(memory)|$(cpu)|$(disk /)|$(volume)|$(battery BAT0)|$(internet)|$(clock)"
|
||||
}
|
||||
while :; do
|
||||
xsetroot -name "$(status | tr '\n' ' ')"
|
||||
|
@ -12,4 +12,4 @@ else
|
||||
icon="🔉"
|
||||
fi
|
||||
|
||||
printf "%s %s%%\\n" "$icon" "$vol"
|
||||
printf "%s %s\\n" "$vol" "$icon"
|
||||
|
Loading…
x
Reference in New Issue
Block a user