chore: Changed xmobar look to be cleaner
This commit is contained in:
parent
135d0ec2ab
commit
f510ebe705
21 changed files with 900 additions and 150 deletions
15
.config/xmobar/scripts/gpu_util.sh
Executable file
15
.config/xmobar/scripts/gpu_util.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
temp1=50
|
||||
temp2=90
|
||||
|
||||
temp=$(nvidia-smi | grep 'Default' | awk '{print $2}' | 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
|
Loading…
Add table
Add a link
Reference in a new issue