icon fixes
This commit is contained in:
parent
a423452721
commit
fc83b60b90
|
@ -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\""
|
||||
}}
|
||||
|
|
|
@ -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#* }
|
||||
|
|
|
@ -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))}'
|
||||
|
|
Loading…
Reference in New Issue