8000 "fuzzy-match = true" mistakenly matches workspace 1 instead of workspace 10 · Issue #2041 · polybar/polybar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
"fuzzy-match = true" mistakenly matches workspace 1 instead of workspace 10 #2041
Closed
@Kabouik

Description

@Kabouik

Describe the issue

I noticed that my workspace 10 always had the icon of workspace 1 instead of the icon set as ws-icon-9 in my config file. @patrick96 on IRC found out that the issue was related to fuzzy-match = true, which mistakenly matches workspace 1 when workspace 10 is called. When disabling fuzzy-match, the correct ws-icon-9 is used for workspace 10.

Expected behavior:
fuzzy-match should not match "1" instead of "10" if it can match exactly, fuzzy matching should only be a fallback.

Actual behavior:
Workspace 1 is used when workspace 10 is called with fuzzy-match set to true.

To Reproduce

[colors]
background       = #ee333333
background_dark  = #ee232323
background_light = #ee444444
foreground       = #e2e2e2
foreground_dark  = #888888
foreground_light = #ffffff
accent           = #728cbb
urgent           = #de935f
transparent      = #00000000

[fonts]
text = FiraMono:style=Bold:pixelsize=8.2;2
icons  = RobotoMono Nerd Font:style=Regular:pixelsize=12;2
text2 = RobotoMono Nerd Font:style=Bold:pixelsize=8.5;2
icons2 = FontAwesome:pixeylsize=12;0
icons3 = icomoon\-feather:style=Regular:pixelsize=12;0

[bar/mainbar-i3]
width = 100%
height = 30
bottom = false
fixed-center = false
background = ${colors.background_dark}
font-0 = ${fonts.text}
font-1 = ${fonts.icons}
font-2 = ${fonts.text2}
font-3 = ${fonts.icons2}
modules-left   = basic_workspaces

[module/basic_workspaces]
type = internal/i3
index-sort = true
wrapping-scroll = false
format = <label-state>
format-font = 2
format-padding = 1
fuzzy-match = true
ws-icon-default = ﱣ
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;
ws-icon-3 = 4;
ws-icon-4 = 5;
ws-icon-5 = 6;
ws-icon-6 = 7;
ws-icon-7 = 8;
ws-icon-8 = 9;
ws-icon-9 = 10;
#ws-icon-6 = 7;
#ws-icon-6 = 7;
# Active workspaces
label-focused = %icon%
label-focused-background = ${colors.background}
label-focused-foreground = ${colors.foreground}
label-focused-padding = ${var.padding}
# Inactive workspaces
label-unfocused = %icon%
label-unfocused-foreground = ${colors.foreground_dark}
label-unfocused-padding = ${var.padding}
# Workspaces with urgency hint
label-urgent = %icon%
label-urgent-foreground = ${colors.urgent}
label-urgent-padding = ${var.padding}
# Visible workspace (the unfocused workspace showed on the other monitor)
label-visible = %icon%
label-visible-foreground = ${colors.foreground}
label-visible-padding = ${var.padding}
# Empty workspaces
label-empty = ++%icon%
label-empty-foreground = ${colors.foreground_dark}
label-empty-padding = ${var.padding}

Polybar Log

There's no logs related to this issue.

Environment:

  • WM: i3wm
  • Distro: Solus
  • Output of polybar -vvv:
polybar 3.4.1

Features: +alsa +curl +i3 +mpd +network(wireless-tools) +pulseaudio +xkeyboard

X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor

Build type: RelWithDebInfo
Compiler: /usr/bin/x86_64-solus-linux-g++
Compiler flags: -mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -Wall -Wextra -Wpedantic -O2 -g -DNDEBUG
Linker flags: -Wl,--copy-dt-needed-entries -Wl,-O1 -Wl,-z,relro -Wl,-z,now -Wl,-z,max-page-size=0x1000 -Wl,-Bsymbolic-functions -Wl,--sort-common 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0