polybar/polybar

xworkspaces with i3 shows active workspace as "empty"

Open

#702 创建于 2017年8月19日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)C++ (13,262 star) (684 fork)batch import
bughelp wantedneeds confirmation

描述

I'm trying to use xworkspaces plugin with i3 so I can keep my polybar config consistent when I switch to other WMs.

I've noticed a bug where an active workspace shows up as empty after switching to it from an empty workspace directly preceding it. I have attached a screen recording below:

bug optimized To clarify what's going on:

  • switch from workspace 2 to 4 to show how it should behave
  • switch from workspace 2 to 3 to 4
  • once we end up on 4, it should be active, but instead it is displayed as empty, and none of the workspaces are highlighted.

Relevant part of my config:

[module/ewmh]
type = internal/xworkspaces
label-active = %name%(active)
label-active-background =#FFFFFF
label-empty = %name%(empty)

I speculate this is caused by i3 removing the empty workspace (3 in my example), causing the index of the current workspace to not change. I've tried to look through the module's source code, but was unable to pinpoint the exact cause.

贡献者指南