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.
97 lines
1.9 KiB
97 lines
1.9 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 =
|
|
ramp-capacity-5 =
|
|
ramp-capacity-6 =
|
|
ramp-capacity-7 =
|
|
ramp-capacity-8 =
|
|
ramp-capacity-9 =
|
|
ramp-capacity-10 =
|
|
|
|
[module/title]
|
|
type = internal/xwindow
|
|
label-maxlen = 50
|
|
[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/wireguard]
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/wireguard-is-connected.sh
|
|
|
|
click-left = ~/.config/polybar/toggle-wireguard.sh
|
|
|
|
interval = 5
|
|
|
|
[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/2 | 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>
|