Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] xworkspaces: label color does not change on urgent workspaces (i3) #3022

Open
5 tasks done
awsms opened this issue Oct 9, 2023 · 1 comment
Open
5 tasks done

Comments

@awsms
Copy link

awsms commented Oct 9, 2023

Checklist

  • I have read the appropriate section in the contributing guidelines
  • I believe this issue is a problem with polybar itself and not a misconfiguration on my part
  • I have searched for other open and closed issues that may have already reported this problem
  • I have checked the known issues page for this problem.
  • I have followed the debugging guide to narrow down the problem to a minimal config.

Steps to reproduce

  1. open a window in another workspace

Minimal config

;==========================================================
;
;
;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
;
;
;   To learn more about how to configure Polybar
;   go to https://github.com/polybar/polybar
;
;   The README contains a lot of information
;
;==========================================================

[colors]
background = #282A2E
background-alt = #373B41
foreground = #C5C8C6
primary = #F0C674
secondary = #8ABEB7
alert = #A54242
disabled = #707880

[bar/example]
monitor = ${env:MONITOR:}

width = 100%
height = 24pt
radius = 5

; dpi = 96

background = ${colors.background}
foreground = ${colors.foreground}

line-size = 3pt

border-size = 3pt
border-color = #00000000

padding-left = 0
padding-right = 1

module-margin = 1

separator = |
separator-foreground = ${colors.disabled}

font-0 = monospace;2

modules-left = xworkspaces systray

cursor-click = pointer
cursor-scroll = ns-resize

bottom = true

enable-ipc = true

; tray-position = right

; wm-restack = generic
; wm-restack = bspwm
wm-restack = i3

; override-redirect = true

[module/systray]
type = internal/tray

format-margin = 4pt
tray-spacing = 6pt

[module/xworkspaces]
type = internal/xworkspaces

label-active = %name%
label-active-background = ${colors.background-alt}
label-active-underline= ${colors.primary}
label-active-padding = 1

label-occupied = %name%
label-occupied-padding = 1

label-urgent = %name%
label-urgent-background = ${colors.alert}
label-urgent-padding = 11

label-empty = %name%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1

Polybar log

No response

Expected behavior

I'm expecting the workspace, where a window was open/some program triggered, to have a different label color

Actual behavior

nothing

Window Manager and Version

i3 version 4.22 (2023-01-02)

Linux Distribution

EndeavourOS

Polybar version

polybar 3.6.3-216-g278584fa

Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard

Additional Context / Screenshots

confirmed by a dev, who suggested opening an issue (which nobody did despite a few more reponses on the thread)
https://www.reddit.com/r/Polybar/comments/urdy2h/workspace_urgency_not_working_what_am_i_missing/

@kronn
Copy link
Contributor

kronn commented Dec 13, 2023

If you are using i3, there is a dedicated module that should (to my understanding) communicate directly with the window manager. xworkspaces is mostly used as a generic fallback for all EWMH-compliant window managers. I can see that your polybar-version has the i3-module enabled, so this could be an option for you: https://github.com/polybar/polybar/wiki/Module:-i3

This might not solve the issue, but maybe help you at least?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants