You are not logged in.

#1 2023-04-05 16:13:08

TheShiningBoots
Member
Registered: 2023-04-05
Posts: 2

Polybar WLAN module fails to load

The config.ini file:

[colors]
background = #000f161e
background-alt = #1306080a
primary = #fff
alert = #f7768e
base = #1e1e2e
mantle = #181825
crust = #cc11111b

text = #cdd6f4
subtext0 = #a6adc8
subtext1 = #bac2de

surface0 = #313244
surface1 = #45475a
surface2 = #585b70

overlay0 = #6c7086
overlay1 = #7f849c
overlay2 = #9399b2


blue = #89b4fa
lavender = #b4befe
sapphire = #74c7ec
sky = #89dceb
teal = #94e2d5
green = #a6e3a1
yellow = #f9e2af
peach = #fab387
maroon = #eba0ac
red = #f38ba8
mauve = #cba6f7
pink = #f5c2e7
flamingo = #f2cdcd
rosewater = #f5e0dc

transparent = #FF00000


[bar/top]
bottom = false

background = ${colors.background}

border-size = 0
border-color = #00000000

padding-right = 2

module-margin-left = 1
module-margin-right = 1


font-0 = "JetBrainsMono Nerd Font:style=Regular:size=10;2"
font-1 = "JetBrainsMono Nerd Font:style=Bold:size=10;2"
font-2 = "JetBrainsMono Nerd Font:size=19;5"

modules-left = i3
modules-center =  xwindow
modules-right = date wlan pulseaudio

wm-restack = i3

[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%

[module/i3]
type = internal/i3

format = <label-state> <label-mode>

label-focused = %index%
label-focused-foreground = #FFD93D
label-focused-padding = 2

label-occupied = %index%
label-occupied-foreground = ${colors.overlay0}
label-occupied-padding = 2

label-urgent = %index%
label-urgent-foreground = ${colors.red}
label-urgent-padding = 2

label-empty = %index%
label-empty-foreground = ${colors.surface0}
label-empty-padding = 2

[module/wlan]
type = internal/network
interface = wlan0
interval = 1.0

format-connected-prefix = 
format-connected-prefix-foreground = ${colors.blue}
format-connected = <label-connected>
label-connected = "%{A1:wifimenu:}%essid%%{A}"
label-connected-padding = 1

format-disconnected = <label-disconnected>
format-disconnected-padding = 1
label-disconnected = %{A1:wifimenu:}%{A}
label-disconnected-foreground = ${colors.overlay0}
label-disconnected-padding = 1


[module/date]
type = internal/date
interval = 5

date = "%a %b %d"
time = %H:%M

format =  <label>
label = %time% %date%

[global/wm]
margin-top = 5
margin-bottom = 5

[module/pulseaudio]
type = internal/pulseaudio

sink = alsa_output.pci-0000_00_1f.3.analog-stereo

use-ui-max = true

interval = 5

format-volume = <ramp-volume> <label-volume>

label-muted = ﱝ
label-muted-foreground = #666

ramp-volume-0 = 奄
ramp-volume-1 = 奔
ramp-volume-2 = 墳

Polybar run log:

notice: Parsing config file: /home/theshiningboots/.config/polybar/config.ini
notice: Loading module 'i3' of type 'internal/i3'
notice: Loading module 'xwindow' of type 'internal/xwindow'
notice: Loading module 'date' of type 'internal/date'
notice: Loading module 'wlan' of type 'internal/network'
error: Disabling module "wlan" (reason: Invalid network interface "wlan0")
notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
notice: pulseaudio: using default sink alsa_output.pci-0000_00_1b.0.analog-stereo
notice: Loaded 4 modules
notice: Loaded font "JetBrainsMono Nerd Font:style=Regular:size=10" (name=JetBrainsMono Nerd Font, offset=2, file=/home/theshiningboots/.local/share/fonts/JetBrains Mono Regular Nerd Font Complete.ttf)
notice: Loaded font "JetBrainsMono Nerd Font:style=Bold:size=10" (name=JetBrainsMono Nerd Font, offset=2, file=/home/theshiningboots/.local/share/fonts/JetBrains Mono Bold Nerd Font Complete.ttf)
notice: Loaded font "JetBrainsMono Nerd Font:size=19" (name=JetBrainsMono Nerd Font, offset=5, file=/home/theshiningboots/.local/share/fonts/JetBrains Mono Regular Nerd Font Complete.ttf)
warn: Ignoring restack of i3 window (not needed when `override-redirect = false`)
notice: Received signal(2): Interrupt
notice: Termination signal received, shutting down...
warn: module/i3: Attempting to reconnect socket (reason: Unexpected EOF while reading header)

Polybar run log with -l info

notice: Parsing config file: /home/theshiningboots/.config/polybar/config.ini
* Loaded monitor eDP1 (1600x900+0+0)
* Configured DPI = 96x96
* Bar geometry: 1600x24+0+0; Borders: 0,0,0,0
notice: Loading module 'i3' of type 'internal/i3'
notice: Loading module 'xwindow' of type 'internal/xwindow'
notice: Loading module 'date' of type 'internal/date'
notice: Loading module 'wlan' of type 'internal/network'
error: Disabling module "wlan" (reason: Invalid network interface "wlan0")
notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
notice: pulseaudio: using default sink alsa_output.pci-0000_00_1b.0.analog-stereo
notice: Loaded 4 modules
* Starting application
* Starting module/i3
* Starting module/xwindow
* Starting module/date
* Starting module/pulseaudio
* Entering event loop (thread-id=1)
notice: Loaded font "JetBrainsMono Nerd Font:style=Regular:size=10" (name=JetBrainsMono Nerd Font, offset=2, file=/home/theshiningboots/.local/share/fonts/JetBrains Mono Regular Nerd Font Complete.ttf)
notice: Loaded font "JetBrainsMono Nerd Font:style=Bold:size=10" (name=JetBrainsMono Nerd Font, offset=2, file=/home/theshiningboots/.local/share/fonts/JetBrains Mono Bold Nerd Font Complete.ttf)
notice: Loaded font "JetBrainsMono Nerd Font:size=19" (name=JetBrainsMono Nerd Font, offset=5, file=/home/theshiningboots/.local/share/fonts/JetBrains Mono Regular Nerd Font Complete.ttf)
* Bar window: 0x5a00001
warn: Ignoring restack of i3 window (not needed when `override-redirect = false`)
* Disabling tray manager (reason: missing `tray-position`)
* module/i3: Rebuilding cache
* module/xwindow: Rebuilding cache
* module/date: Rebuilding cache
* module/pulseaudio: Rebuilding cache
* Redrawing bar window
notice: Received signal(2): Interrupt
* Eventloop finished
notice: Termination signal received, shutting down...
* module/i3: Disconnecting from socket
* module/i3: Stopping
warn: module/i3: Attempting to reconnect socket (reason: Unexpected EOF while reading header)
* module/i3: Reconnecting socket succeeded
* Deconstruction of module/i3 took 1 ms.
* module/xwindow: Stopping
* Deconstruction of module/xwindow took 0 ms.
* module/date: Stopping
* Deconstruction of module/date took 0 ms.
* module/pulseaudio: Stopping
* Deconstruction of module/pulseaudio took 1 ms.
* Waiting for spawned processes to end
* Reached end of application...

Offline

Board footer

Powered by FluxBB