aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/polybar/config.ini73
1 files changed, 41 insertions, 32 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini
index 9c5ddfa..9de3d64 100644
--- a/.config/polybar/config.ini
+++ b/.config/polybar/config.ini
@@ -344,39 +344,48 @@ label="%percentage%%"
label-foreground=${colors.foreground}
label-font=2
+;[module/temperature]
+;type=internal/temperature
+;; Seconds to sleep between updates
+;; Default: 1
+;interval=10
+;; Thermal zone to use
+;; To list all the zone types, run
+;; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
+;; Default: 0
+;thermal-zone=0
+;; Full path of temperature sysfs path
+;; Use `sensors` to find preferred temperature source, then run
+;; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
+;; to find path to desired file
+;; Default reverts to thermal zone setting
+;;hwmon-path=/sys/devices/platform/dell_smm_hwmon/hwmon/hwmon2/temp1_input
+;hwmon-path=/sys/devices/platform/dell_smm_hwmon/hwmon/hwmon1/temp1_input
+;; Base temperature for where to start the ramp (in degrees celsius)
+;; Default: 0
+;base-temperature=20
+;warn-temperature=60
+;; Threshold temperature to display warning label (in degrees celsius)
+;; Default: 80
+;format-prefix="  "
+;format-warn-prefix="  "
+;format-warn-foreground=${colors.red}
+;format-foreground=${colors.foreground}
+;format-font=4
+;format-warn-font=4
+;label-warn-font=2
+;label-foreground=${colors.foreground}
+;format = "<label>"
+;label-font=2
+
[module/temperature]
-type=internal/temperature
-; Seconds to sleep between updates
-; Default: 1
-interval=10
-; Thermal zone to use
-; To list all the zone types, run
-; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
-; Default: 0
-thermal-zone=0
-; Full path of temperature sysfs path
-; Use `sensors` to find preferred temperature source, then run
-; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
-; to find path to desired file
-; Default reverts to thermal zone setting
-;hwmon-path=/sys/devices/platform/dell_smm_hwmon/hwmon/hwmon2/temp1_input
-hwmon-path=/sys/devices/platform/dell_smm_hwmon/hwmon/hwmon1/temp1_input
-; Base temperature for where to start the ramp (in degrees celsius)
-; Default: 0
-base-temperature=20
-warn-temperature=60
-; Threshold temperature to display warning label (in degrees celsius)
-; Default: 80
-format-prefix="  "
-format-warn-prefix="  "
-format-warn-foreground=${colors.red}
-format-foreground=${colors.foreground}
-format-font=4
-format-warn-font=4
-label-warn-font=2
-label-foreground=${colors.foreground}
-format = "<label>"
-label-font=2
+type = custom/script
+interval = 5
+format = <label>
+format-prefix = " "
+format-prefix-foreground = ${colors.foreground}
+exec = ~/.config/polybar/scripts/temperature.sh
+
[module/battery]
type = custom/script