From 32168d44b77ac11dd626b4a019d4a5d1631570e8 Mon Sep 17 00:00:00 2001 From: Krzysztof Rudnicki Date: Sat, 16 Nov 2024 21:10:48 +0100 Subject: [PATCH] feat: shorten icon display --- i3blocks/battery_status.sh | 2 +- i3blocks/config | 8 ++++---- i3blocks/cpu_monitor.sh | 2 +- i3blocks/gpu_monitor.sh | 2 +- i3blocks/motherboard_temp.sh | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/i3blocks/battery_status.sh b/i3blocks/battery_status.sh index bba1a05..9926d95 100755 --- a/i3blocks/battery_status.sh +++ b/i3blocks/battery_status.sh @@ -4,7 +4,7 @@ acpi -b | awk -F', ' ' /Battery/ { split($2, percent, "%") split($3, time, " ") - printf " %d%%", percent[1] + printf " %d%%", percent[1] if (time[1] != "") printf ", %s", time[1] if ($1 ~ /Charging/) printf ", " printf "\n" diff --git a/i3blocks/config b/i3blocks/config index 9b1f4e9..ff4e0e3 100644 --- a/i3blocks/config +++ b/i3blocks/config @@ -17,12 +17,12 @@ command=~/.config/i3blocks/motherboard_temp.sh interval=5 [memory] -command=free -h | awk '/^Mem:/ {print "RAM: " $3 "/" $2}' #  for RAM +command=free -h | awk '/^Mem:/ {print " " $3 "/" $2}' #  for RAM interval=5 color=#50FA7B [disk] -command=df -h / | awk '/\// {print " Disk: " $3 "/" $2}' #  for disk +command=df -h / | awk '/\// {print " Disk: " $3 "/" $2}' #  for disk interval=60 color=#50FA7B @@ -40,7 +40,7 @@ interval=1 color=#50FA7B [ethernet] -command=ip -o -4 addr show enp6s0 | awk '{print " "$4}' || echo " down" #  for Ethernet +command=ip -o -4 addr show enp6s0 | awk '{print " "$4}' || echo " down" #  for Ethernet interval=10 [wifi] @@ -52,7 +52,7 @@ command=~/.config/i3blocks/network_monitor.sh interval=1 [time] -command=echo " $(date '+%Y-%m-%d %H:%M')" #  for time (Font Awesome icon) +command=echo " $(date '+%Y-%m-%d %H:%M')" #  for time (Font Awesome icon) interval=1 color=#50FA7B diff --git a/i3blocks/cpu_monitor.sh b/i3blocks/cpu_monitor.sh index d529f24..c8a78b3 100755 --- a/i3blocks/cpu_monitor.sh +++ b/i3blocks/cpu_monitor.sh @@ -45,4 +45,4 @@ if [[ "$cpu_temp" != "N/A" ]]; then fi fi -echo -e " ${cpu_temp}°C, ${cpu_load}" \ No newline at end of file +echo -e " ${cpu_temp}°C, ${cpu_load}" \ No newline at end of file diff --git a/i3blocks/gpu_monitor.sh b/i3blocks/gpu_monitor.sh index 515686c..1a15f16 100755 --- a/i3blocks/gpu_monitor.sh +++ b/i3blocks/gpu_monitor.sh @@ -59,7 +59,7 @@ else fi # Output< -echo -e " ${gpu_temp}, ${gpu_load}%" +echo -e " ${gpu_temp}, ${gpu_load}%" echo echo "#FFFFFF" # Default color for fallback (ignored if markup is enabled) diff --git a/i3blocks/motherboard_temp.sh b/i3blocks/motherboard_temp.sh index f756576..76a738c 100755 --- a/i3blocks/motherboard_temp.sh +++ b/i3blocks/motherboard_temp.sh @@ -21,7 +21,7 @@ else fi # Output the temperature with the color -echo " MB: ${temp}°C" #  is a thermometer icon +echo " MB: ${temp}°C" #  is a thermometer icon echo echo $color