summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-gpubar
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-16 15:01:42 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-16 15:02:27 +0100
commit497b1dbf39044db541a46710387b7fc033ef0463 (patch)
tree51f70b2365ebebd975b217645fadcb59bde5644e /.local/bin/statusbar/sb-gpubar
parente41f7b39709ce1272a079dc55977cc66c21b633d (diff)
Update sb-pacpackages with paru
Diffstat (limited to '.local/bin/statusbar/sb-gpubar')
-rwxr-xr-x.local/bin/statusbar/sb-gpubar4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/statusbar/sb-gpubar b/.local/bin/statusbar/sb-gpubar
index 6c53136..5cbdf18 100755
--- a/.local/bin/statusbar/sb-gpubar
+++ b/.local/bin/statusbar/sb-gpubar
@@ -11,7 +11,7 @@ esac
memutil=$(nvidia-smi --query-gpu=utilization.gpu --format=csv | awk 'FNR == 2 {print $1}')
gpuutil=$(nvidia-smi --query-gpu=utilization.memory --format=csv | awk 'FNR == 2 {print $1}')
-# temp=$(nvidia-smi --query-gpu=temperature.gpu --format=csv | awk 'FNR == 2 {print $1}')
+temp=$(nvidia-smi --query-gpu=temperature.gpu --format=csv | awk 'FNR == 2 {print $1}')
printf ""
for var in $memutil $gpuutil; do
case "$var" in
@@ -26,5 +26,5 @@ for var in $memutil $gpuutil; do
*) printf "█" ;;
esac
done
-# printf " $temp°C"
+printf " 󰔏$temp°C"
printf "\\n"