summaryrefslogtreecommitdiff
path: root/.config/polybar
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2020-08-24 11:59:45 -0300
committerRoger Gonzalez <roger@rogs.me>2020-08-24 11:59:45 -0300
commit76ad8f7c91b1d5c428417a8213860a7f51b91ff9 (patch)
treef842444bae679aabed327355f515f4ef8fefdbd4 /.config/polybar
parent92383e9a2c34f017af34fa39faf8c77321662fed (diff)
Added temps to polybar
Diffstat (limited to '.config/polybar')
-rw-r--r--.config/polybar/config20
1 files changed, 18 insertions, 2 deletions
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