Add wlan widget to polybar

This commit is contained in:
Şahin Akkaya 2022-01-26 16:23:16 +03:00
parent 98c325f301
commit 9bc2ccefd5
3 changed files with 10 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -22,6 +22,7 @@
adapter = AC0
battery = BAT0
graphics_card = intel_backlight
network_interface = enp3s0
wlan_interface = wlan0
ethernet_interface = enp3s0
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_