mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-09 19:11:15 +02:00
statusbar/sxhkd: updated player interface and cleaned up
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
model=$(cat /proc/cpuinfo | grep "model name" | head -n1)
|
||||
|
||||
icon="^b#282828^^c#dfdfdf^ ^d^"
|
||||
|
||||
if printf "$model " | grep -Fqe "AMD"; then
|
||||
temp=$(sensors | awk '/Tctl/ {print $2}')
|
||||
else
|
||||
@@ -12,4 +10,14 @@ fi
|
||||
|
||||
temp=$(printf %3s $(echo ${temp##*+} | sed "s/\..*//") | tr ' ' ' ')
|
||||
|
||||
echo "$icon $temp°C"
|
||||
if [ $temp -gt 100 ]
|
||||
then
|
||||
icon="^b#282828^^c#ff0000^ ^d^"
|
||||
elif [ $temp -gt 80 ]
|
||||
then
|
||||
icon="^b#282828^^c#ffff00^ ^d^"
|
||||
else
|
||||
icon="^b#282828^^c#dfdfdf^ ^d^"
|
||||
fi
|
||||
|
||||
echo "$icon"
|
||||
|
Reference in New Issue
Block a user