From 2770fefefd1b372ee2616d39b91400221f3c0da5 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sat, 21 Mar 2020 22:53:48 +0000 Subject: [PATCH] polybar: add gputemp applet rename temperature to cputemp for consistency --- .config/polybar/config | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.config/polybar/config b/.config/polybar/config index 4326d38..aa44a06 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -46,8 +46,8 @@ line-colour = #f00 modules-left = i3 modules-center = -# modules-right = volume updates weather xkeyboard wlan gateway eth memory cpu xbacklight battery temperature date -modules-right = volume updates weather 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 cputemp gputemp date tray-position = right tray-detached = false @@ -267,7 +267,7 @@ ramp-capacity-0-foreground = ${colours.critical} ramp-capacity-1-foreground = ${colours.warning} -[module/temperature] +[module/cputemp] type = internal/temperature thermal-zone = 2 warn-temperature = 70 @@ -287,6 +287,15 @@ ramp-4 =  ramp-5 =  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] type = custom/menu