You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

82 lines
1.6 KiB

[module/battery]
type = internal/battery
battery = BAT1
adapter = ACAD
full-at = 100
format-charging = <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
label-charging = %percentage%%
label-discharging = %percentage%%
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
[module/title]
type = internal/xwindow
[module/temperature]
type = internal/temperature
; for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
thermal-zone = /sys/class/thermal/thermal_zone0
hwmon-path = /sys/devices/pci0000:00/0000:00:01.1/0000:10:00.0/hwmon/hwmon2/temp1_input
; 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
format = <label>
label = %temperature-c%
[module/wlan]
type = internal/network
interface = wlp1s0
interval = 3.0
format-connected = <label-connected>
label-connected =  %essid%
format-disconnected = <label-disconnected>
label-disconnected = 
[module/eth]
type = internal/network
interface = enp34s0
interval = 3.0
label-connected =  %downspeed%
format-connected = <label-connected>
label-disconnected = 
[module/phone-battery]
type = custom/script
exec = echo "$(mconnectctl show-battery /org/mconnect/device/0 | head -1 | awk '{print $2}')%"
exec-if = ~/.config/polybar/phone-is-connected.sh
interval = 300
[module/date]
type = internal/date
interval = 5
time = %H:%M
date = %a %e %b
label = %date% %time%
format = <label>