diff options
| author | czjstmax <jstmaxlol@disroot.org> | 2026-05-14 23:28:03 +0200 |
|---|---|---|
| committer | czjstmax <jstmaxlol@disroot.org> | 2026-05-14 23:28:03 +0200 |
| commit | 1abab237ce428b1692004b761403aacab8baa35f (patch) | |
| tree | 7e7638a034f367b4f8b0758c1622fa280f762626 /cfg/i3 | |
| parent | 73c5a2c25ad314f8db837bb260946cde13040488 (diff) | |
updates
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to 'cfg/i3')
| -rw-r--r-- | cfg/i3/kurobar.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cfg/i3/kurobar.sh b/cfg/i3/kurobar.sh index 4a3e9be..aff86ee 100644 --- a/cfg/i3/kurobar.sh +++ b/cfg/i3/kurobar.sh @@ -16,11 +16,11 @@ while true; do if [[ "$status" == "Not charging" ]]; then charge_status="it's inside me.. but it's too much~~!" elif [[ "$status" == "Charging" ]]; then - charge_status="++ing~!" + charge_status="++ing.." elif [[ "$status" == "Discharging" && "$bat" -lt 40 ]]; then charge_status="++ me! low battery!" elif [[ "$status" == "Discharging" ]]; then - charge_status="--ing" + charge_status="--ing.." else charge_status="unknown status -> $status.." fi @@ -44,11 +44,11 @@ while true; do pubip=$(cat ~/.config/i3/public_ip.txt) # --- cpu usage --- - #cpu_idle1=$(awk '/^cpu / {print $5}' /proc/stat) - #cpu_total1=$(awk '/^cpu / {total=0; for(i=2;i<=NF;i++) total+=$i; print total}' /proc/stat) - #cpu_idle2=$(awk '/^cpu / {print $5}' /proc/stat) - #cpu_total2=$(awk '/^cpu / {total=0; for(i=2;i<=NF;i++) total+=$i; print total}' /proc/stat) - #cpu=$((100 * ( (cpu_total2 - cpu_total1) - (cpu_idle2 - cpu_idle1) ) / (cpu_total2 - cpu_total1) )) + # cpu_idle1=$(awk '/^cpu / {print $5}' /proc/stat) + # cpu_total1=$(awk '/^cpu / {total=0; for(i=2;i<=NF;i++) total+=$i; print total}' /proc/stat) + # cpu_idle2=$(awk '/^cpu / {print $5}' /proc/stat) + # cpu_total2=$(awk '/^cpu / {total=0; for(i=2;i<=NF;i++) total+=$i; print total}' /proc/stat) + # cpu=$((100 * ( (cpu_total2 - cpu_total1) - (cpu_idle2 - cpu_idle1) ) / (cpu_total2 - cpu_total1) )) # --- date/time --- dt=$(date '+%Y年%m月%d日 %H時%M分%S秒') |