1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

polybar: add gputemp applet

rename temperature to cputemp for consistency
This commit is contained in:
Joe Groocock 2020-03-21 22:53:48 +00:00
parent 0256369cd6
commit 2770fefefd
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -46,8 +46,8 @@ line-colour = #f00
modules-left = i3 modules-left = i3
modules-center = modules-center =
# modules-right = volume updates weather xkeyboard wlan gateway eth memory cpu xbacklight battery temperature date # modules-right = volume updates weather xkeyboard wlan gateway eth memory cpu xbacklight battery cputemp gputemp date
modules-right = volume updates weather wlan gateway eth memory cpu xbacklight battery temperature date modules-right = volume updates weather wlan gateway eth memory cpu xbacklight battery cputemp gputemp date
tray-position = right tray-position = right
tray-detached = false tray-detached = false
@ -267,7 +267,7 @@ ramp-capacity-0-foreground = ${colours.critical}
ramp-capacity-1-foreground = ${colours.warning} ramp-capacity-1-foreground = ${colours.warning}
[module/temperature] [module/cputemp]
type = internal/temperature type = internal/temperature
thermal-zone = 2 thermal-zone = 2
warn-temperature = 70 warn-temperature = 70
@ -287,6 +287,15 @@ ramp-4 = 
ramp-5 =  ramp-5 = 
ramp-foreground = ${colours.icon} ramp-foreground = ${colours.icon}
[module/gputemp]
type = custom/script
exec = nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits
interval = 10
label = %output%°C
format-prefix = " "
format-prefix-foreground = ${colours.icon}
[module/powermenu] [module/powermenu]
type = custom/menu type = custom/menu