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.

97 lines
1.9 KiB

3 years ago
[module/battery]
type = internal/battery
battery = BAT1
adapter = ACAD
3 years ago
full-at = 100
format-charging = <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
3 years ago
label-charging =  %percentage%%
3 years ago
label-discharging = %percentage%%
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-5 = 
ramp-capacity-6 = 
ramp-capacity-7 = 
ramp-capacity-8 = 
ramp-capacity-9 = 
ramp-capacity-10 = 
3 years ago
[module/title]
type = internal/xwindow
label-maxlen = 50
3 years ago
[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
3 years ago
; 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
3 years ago
format = <label>
label = %temperature-c%
[module/wlan]
type = internal/network
interface = wlp1s0
3 years ago
interval = 3.0
format-connected = <label-connected>
label-connected =  %essid%
3 years ago
format-disconnected = <label-disconnected>
label-disconnected = 
3 years ago
[module/wireguard]
type = custom/script
exec = ~/.config/polybar/wireguard-is-connected.sh
click-left = ~/.config/polybar/toggle-wireguard.sh
interval = 5
3 years ago
[module/eth]
type = internal/network
interface = enp34s0
3 years ago
interval = 3.0
label-connected =  %downspeed%
format-connected = <label-connected>
3 years ago
label-disconnected =
3 years ago
[module/phone-battery]
type = custom/script
exec = echo " $(mconnectctl show-battery /org/mconnect/device/2 | head -1 | awk '{print $2}')%"
exec-if = ~/.config/polybar/phone-is-connected.sh
interval = 300
3 years ago
[module/date]
type = internal/date
interval = 5
time = %H:%M
date = %a %e %b
label = %date% %time%
format =  <label>