-
Notifications
You must be signed in to change notification settings - Fork 0
nvidia
Nic Schmidt edited this page Dec 25, 2022
·
1 revision
Shows the current GPU usage and temperature.
Requires nvidia-smi to be installed.
local mygpu = lain.widget.contrib.nvidia()| Variable | Meaning | Type | Default |
|---|---|---|---|
timeout |
Refresh timeout (in seconds) | integer | 5 |
exec |
Command to get comma-separated usage and temperature | string | nvidia-smi --query-gpu=utilization.gpu,temperature.gpu --format=csv,noheader,nounits |
format |
String format for output | string | "%.1f" |
settings |
User settings | function | empty function |
widget |
Widget to render | function | wibox.widget.textbox |
settings can use these strings:
-
gpu.usage, the GPU usage percentage; -
gpu.temperature, the GPU temperature in °C.
| Variable | Meaning | Type |
|---|---|---|
widget |
The widget | wibox.widget.textbox |
update |
Update widget
|
function |