i3status_rs::blocks

Module nvidia_gpu

source
Expand description

Display the stats of your NVidia GPU

By default show_temperature shows the used memory. Clicking the left mouse on the “temperature” part of the block will alternate it between showing used or total available memory.

Clicking the left mouse button on the “fan speed” part of the block will cause it to enter into a fan speed setting mode. In this mode you can scroll the mouse wheel over the block to change the fan speeds, and left click to exit the mode.

Requires nvidia-smi for displaying info and nvidia_settings for setting fan speed.

§Configuration

KeyValuesDefault
gpu_idGPU id in system.0
formatA string to customise the output of this block. See below for available placeholders." $icon $utilization $memory $temperature "
intervalUpdate interval in seconds.1
idleMaximum temperature, below which state is set to idle50
goodMaximum temperature, below which state is set to good70
infoMaximum temperature, below which state is set to info75
warningMaximum temperature, below which state is set to warning80
PlaceholderTypeUnit
iconIcon-
nameText-
utilizationNumberPercents
memoryNumberBytes
temperatureNumberDegrees
fan_speedNumberPercents
clocksNumberHertz
powerNumberWatts
ActionDefault button
toggle_mem_totalLeft on $memory
toggle_fan_controlledLeft on $fan_speed
fan_speed_upWheel Up on $fan_speed
fan_speed_downWheel Down on $fan_speed

§Example

[[block]]
block = "nvidia_gpu"
interval = 1
format = " $icon GT 1030 $utilization $temperature $clocks "

§Icons Used

  • gpu

§TODO

  • Provide a mappings option similar to keyboard_layout’s to map GPU names to labels?

Structs§

Functions§