polybar: add network modules for buzz

This commit is contained in:
inkch 2025-01-14 19:09:01 +09:00
parent 6672a9d253
commit c74f5ffd1f

View File

@ -65,7 +65,7 @@ modules-right = pueue filesystem temp cpu memory eth-down eth-up ipv6 ollama caf
{{- else if eq .chezmoi.hostname "buzz" }}
modules-left = i3 xwindow
modules-center = date
modules-right = filesystem temp cpu memory battery tray
modules-right = wired-network wireless-network filesystem temp cpu memory battery tray
{{- end }}
@ -109,6 +109,52 @@ adapter = AC
;
; Default: 5
poll-interval = 5
[module/wired-network]
; All labels support the following tokens:
; %ifname% [wireless+wired]
; %local_ip% [wireless+wired]
; %local_ip6% [wireless+wired]
; %essid% [wireless]
; %signal% [wireless]
; %upspeed% [wireless+wired]
; %downspeed% [wireless+wired]
; %netspeed% [wireless+wired] (%upspeed% + %downspeed%) (New in version 3.6.0)
; %linkspeed% [wired]
; %mac% [wireless+wired] (New in version 3.6.0)
label-connected = %local_ip%
label-connected-foreground = #ccc
label-disconnected = x
label-disconnected-foreground = #666666
format-connected = <label-connected>
format-disconnected = <label-disconnected>
type = internal/network
interface = enp3s0
[module/wireless-network]
; All labels support the following tokens:
; %ifname% [wireless+wired]
; %local_ip% [wireless+wired]
; %local_ip6% [wireless+wired]
; %essid% [wireless]
; %signal% [wireless]
; %upspeed% [wireless+wired]
; %downspeed% [wireless+wired]
; %netspeed% [wireless+wired] (%upspeed% + %downspeed%) (New in version 3.6.0)
; %linkspeed% [wired]
; %mac% [wireless+wired] (New in version 3.6.0)
label-connected = %local_ip%
label-connected-foreground = #ccc
label-disconnected = x
label-disconnected-foreground = #666666
format-connected = <label-connected>
format-disconnected = <label-disconnected>
type = internal/network
interface = wlan0
{{ end }}
[module/pueue]