From c74f5ffd1f60c36f079db6ad49e7ec5d31e93d79 Mon Sep 17 00:00:00 2001 From: inkch Date: Tue, 14 Jan 2025 19:09:01 +0900 Subject: [PATCH] polybar: add network modules for buzz --- dot_config/polybar/config.ini.tmpl | 48 +++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/dot_config/polybar/config.ini.tmpl b/dot_config/polybar/config.ini.tmpl index c8799bc..fd198c8 100644 --- a/dot_config/polybar/config.ini.tmpl +++ b/dot_config/polybar/config.ini.tmpl @@ -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 = +format-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 = +format-disconnected = +type = internal/network +interface = wlan0 {{ end }} [module/pueue]