1
0
Fork 0

icon fixes

This commit is contained in:
Luca Bilke 2024-01-17 12:21:06 +01:00
parent a423452721
commit fc83b60b90
3 changed files with 4 additions and 3 deletions

View File

@ -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\""
}}

View File

@ -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#* }

View File

@ -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))}'