Add dotfiles
This commit is contained in:
parent
49bfe1a4d3
commit
b6e01a720b
52 changed files with 4701 additions and 0 deletions
22
dwmbar/modules/nvidia_gpu_temp
Executable file
22
dwmbar/modules/nvidia_gpu_temp
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue