dwm and dwmbar

This commit is contained in:
wt committed 2024-07-01 17:46:12 +07:00
1 parent 307448edd3
commit 135fe92331
50 files changed
+1846

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
# Gets temperature of the GPU
# Dependencies: nvidia drivers and nvidia-settings
PREFIX=' '
FIRE=' '
WARNING_LEVEL=80
get_gputemp()
{
GPU_TEMP="$(nvidia-settings -q gpucoretemp -t | head -n 1)"
if [ "$GPU_TEMP" -ge $WARNING_LEVEL ]; then
PREFIX="$FIRE$PREFIX"
fi
echo "$PREFIX$GPU_TEMP°C"
}
get_gputemp