From 9bc2ccefd55128a4bf9d8d8383d2488ebf77b902 Mon Sep 17 00:00:00 2001 From: Asocia Date: Wed, 26 Jan 2022 16:23:16 +0300 Subject: [PATCH] Add wlan widget to polybar --- .config/qtile/polybar/default/config.ini | 2 +- .config/qtile/polybar/default/modules.ini | 14 +++++++------- .config/qtile/polybar/system.ini | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.config/qtile/polybar/default/config.ini b/.config/qtile/polybar/default/config.ini index 6da4d53..1c8b2c2 100644 --- a/.config/qtile/polybar/default/config.ini +++ b/.config/qtile/polybar/default/config.ini @@ -144,7 +144,7 @@ font-4 = "Iosevka:style=bold:size=10;4" modules-left = LD menu RD dot-alt LD qtile RD dot cpu dot used-memory dot filesystem modules-center = LD date RD dot-alt LD mpd RD sep song ;modules-center = LD date RD dot-alt LD -modules-right = volume dot bna dot ethernet dot LD battery RD dot-alt LD sysmenu RD +modules-right = volume dot backlight dot ethernet dot wlan dot LD battery RD dot-alt LD sysmenu RD # Alternate ;modules-left = qtile 2LD cpu 3LD memory 4LD filesystem 5LD diff --git a/.config/qtile/polybar/default/modules.ini b/.config/qtile/polybar/default/modules.ini index 1f3cd74..afdd20a 100644 --- a/.config/qtile/polybar/default/modules.ini +++ b/.config/qtile/polybar/default/modules.ini @@ -605,7 +605,7 @@ label-song-ellipsis = true ; If you use both a wired and a wireless network, Add both modules in config.ini [module/ethernet] type = internal/network -interface = ${system.network_interface} +interface = ${system.ethernet_interface} interval = 1.0 accumulate-stats = true @@ -626,13 +626,13 @@ format-disconnected-background = ${color.BG} format-disconnected-padding = 1 label-connected = "%{A1:networkmanager_dmenu &:}%downspeed% | %upspeed%%{A}" -label-disconnected = "%{A1:networkmanager_dmenu &:}Offline%{A}" +label-disconnected = "%{A1:networkmanager_dmenu &:}%{A}" ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ -[module/network] +[module/wlan] type = internal/network -interface = ${system.network_interface} +interface = ${system.wlan_interface} ; Seconds to sleep between updates ; Default: 1 @@ -989,7 +989,7 @@ label-monitor = %name% ; %icon% ; %index% ; Default: %icon% %name% -label-active = ﱣ +label-active = %icon% label-active-foreground = ${color.GREEN} ;;label-active-underline = ${color.BGA} @@ -998,7 +998,7 @@ label-active-foreground = ${color.GREEN} ; %icon% ; %index% ; Default: %icon% %name% -label-occupied = 綠 +label-occupied = %icon% label-occupied-foreground = ${color.BLUE} ;;label-occupied-underline = ${color.BGA} @@ -1016,7 +1016,7 @@ label-urgent-foreground = ${color.RED} ; %icon% ; %index% ; Default: %icon% %name% -label-empty = 祿 +label-empty = label-empty-foreground = ${color.BLUE} label-active-padding = 1 diff --git a/.config/qtile/polybar/system.ini b/.config/qtile/polybar/system.ini index 1d12512..6b4d1c7 100644 --- a/.config/qtile/polybar/system.ini +++ b/.config/qtile/polybar/system.ini @@ -22,6 +22,7 @@ adapter = AC0 battery = BAT0 graphics_card = intel_backlight -network_interface = enp3s0 +wlan_interface = wlan0 +ethernet_interface = enp3s0 ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_