From 76ad8f7c91b1d5c428417a8213860a7f51b91ff9 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Mon, 24 Aug 2020 11:59:45 -0300 Subject: Added temps to polybar --- .config/polybar/config | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to '.config/polybar') diff --git a/.config/polybar/config b/.config/polybar/config index f378a98c..e957a830 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -35,7 +35,7 @@ font-4 = FontAwesome:size=10;0 font-5 = Noto Color Emoji:scale=12;0 modules-left = i3 spotify modules-center = xwindow -modules-right = pulseaudio xkeyboard cpu memory wireless-network mullvad-status battery clock +modules-right = cpu-temperature gpu-temperature pulseaudio xkeyboard cpu memory wireless-network mullvad-status battery clock [module/i3] type = internal/i3 @@ -77,7 +77,6 @@ label = %percentage:2%% [module/memory] type = internal/memory interval = 2 -; format-prefix = "  " format-prefix = " 📊 " format-underline = #4bffdc label = %percentage_used%% @@ -134,3 +133,20 @@ exec = python /home/roger/.config/polybar/spotify_status.py -t 80 --playpause-fo type = custom/script exec = /home/roger/.config/polybar/mullvad_status.sh interval = 1 + +[module/cpu-temperature] +type = internal/temperature +interval = 0.5 +thermal-zone = 0 +hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon5/temp1_input +base-temperature = 20 +warn-temperature = 80 +format-prefix = "🌡" + +[module/gpu-temperature] +type = internal/temperature +interval = 0.5 +thermal-zone = 0 +hwmon-path = /sys/devices/virtual/hwmon/hwmon4/temp9_input +base-temperature = 20 +warn-temperature = 80 -- cgit v1.2.3