From fc83b60b909f2ce819e2a644d58bbc80e934efae Mon Sep 17 00:00:00 2001
From: Luca Bilke <bilke@tralios.de>
Date: Wed, 17 Jan 2024 12:21:06 +0100
Subject: [PATCH] icon fixes

---
 .config/lf/lfrc                | 2 +-
 .local/bin/statusbar/sb-cpu    | 3 ++-
 .local/bin/statusbar/sb-memory | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 7c5d44c9..47e9c4a6 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -71,7 +71,7 @@ cmd link &{{
 cmd bulkrename $vidir
 
 cmd on-cd &{{
-    printf "%b" "\033]0;$(zsh -c 'source $XDG_CONFIG_HOME/zsh/configs/autogenerated/hashes; print -Pn "$USER@$HOST [%3~]"') \007" > /dev/tty
+    printf "%b" "\033]0;$(zsh -c 'source $XDG_CONFIG_HOME/zsh/configs/autogenerated/hashes; print -Pn "$USER@$HOST [%3~]"') \007" > /dev/tty
     fmt="\033[34;1m%u\033[36m@\033[34m%h \033[35m[\033[0;1m$(zsh -c 'source $XDG_CONFIG_HOME/zsh/configs/autogenerated/hashes; print -Pn "%3~"')\033[35m]\033[32m » \033[33m%f\033[0m"
     lf -remote "send $id set promptfmt \"$fmt\""
 }}
diff --git a/.local/bin/statusbar/sb-cpu b/.local/bin/statusbar/sb-cpu
index 18bfc2f0..a21d9b66 100755
--- a/.local/bin/statusbar/sb-cpu
+++ b/.local/bin/statusbar/sb-cpu
@@ -9,10 +9,11 @@ orange="\033[33m"
 
 cache=/tmp/cpubarscache
 temp=$(sensors | awk '/CPU/ {printf ("%.f°C", $2)}' | tr -d "+")
+[ -n "$temp" ] && temp=" $temp "
 stats=$(awk '/cpu[0-9]+/ {printf "%d %d %d\n", substr($1,4), ($2 + $3 + $4 + $5), $5 }' /proc/stat)
 [ ! -f $cache ] && echo "$stats" >"$cache"
 old=$(cat "$cache")
-printf "%b" "$big$normal $temp"
+printf "%b" "$big$normal$temp"
 echo "$stats" | while read -r row; do
 	id=${row%% *}
 	rest=${row#* }
diff --git a/.local/bin/statusbar/sb-memory b/.local/bin/statusbar/sb-memory
index c343bfa1..8d74957f 100755
--- a/.local/bin/statusbar/sb-memory
+++ b/.local/bin/statusbar/sb-memory
@@ -1,3 +1,3 @@
 #!/bin/sh
-printf "%b" "\033[11m󰍛\033[10m "
+printf "%b" "\033[11m󰘚\033[10m "
 free --mega | sed -n '2{p;q}' | awk '{printf ("%2.2fG/%2.2fG\n", ($3 / 1000), ($2 / 1000))}'