chore: simplified xmobar

This commit is contained in:
2022-11-08 17:10:50 +00:00
parent 75702827aa
commit f3b845cde3
5 changed files with 54 additions and 75 deletions

View File

@@ -13,10 +13,10 @@ else
fi
if [ "$temp" -ge "$temp2" ] ; then
echo "Cpu: <fc=#C1514E>$temp</fc>°C"
echo "<fn=6></fn> <fc=#C1514E>$temp</fc>°C"
elif [ "$temp" -ge "$temp1" ] ; then
echo "Cpu: <fc=#C1A24E>$temp</fc>°C"
echo "<fn=6></fn> <fc=#C1A24E>$temp</fc>°C"
else
echo "Cpu: <fc=#AAC0F0>$temp</fc>°C"
echo "<fn=6></fn> <fc=#AAC0F0>$temp</fc>°C"
fi

View File

@@ -1,3 +1,3 @@
#!/bin/sh
freespace=$(btrfs fi usage / | grep -Po 'Free \(estimated\):.*' | awk '{print $3}')
echo "Disk (Free): <fc=#AAC0F0> $freespace</fc>"
echo "<fn=6></fn>: <fc=#AAC0F0> $freespace</fc>"

View File

@@ -1,15 +0,0 @@
#!/bin/sh
temp1=50
temp2=90
temp=$(nvidia-smi | grep 'Default' | awk '{print $13}' | sed 's/%//')
if [ "$temp" -ge "$temp2" ] ; then
echo "Gpu: <fc=#C1514E>$temp</fc>%"
elif [ "$temp" -ge "$temp1" ] ; then
echo "Gpu: <fc=#C1A24E>$temp</fc>%"
else
echo "Gpu: <fc=#AAC0F0>$temp</fc>%"
fi