dwm and dwmbar
This commit is contained in:
1 parent
307448edd3
commit
135fe92331
50 files changed
+1846
No files matched your search
Executable
+22
@@ -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
|
||||
Reference in new issue
Block a user