Initial backup
This commit is contained in:
7
.xmonad/scripts/getdGPULoad.py
Executable file
7
.xmonad/scripts/getdGPULoad.py
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
from pynvml import *
|
||||
|
||||
nvmlInit()
|
||||
handle = nvmlDeviceGetHandleByIndex(0)
|
||||
print(str(nvmlDeviceGetUtilizationRates(handle).gpu))
|
||||
Reference in New Issue
Block a user