Skip to content

Conversation

@druckdev
Copy link

@druckdev druckdev commented Oct 9, 2025

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Other: Replace this with a description of the type of this PR

Description

Add support for stripping the name of i3 workspaces similar to how it can be done with their number. This brings polybar up to par with i3bar in that regard.

Related Issues & Documents

https://i3wm.org/docs/userguide.html#_strip_workspace_numbers_name

Documentation (check all applicable)

  • This PR requires changes to the Wiki documentation (describe the changes)
  • This PR requires changes to the documentation inside the git repo (please add them to the PR).
  • Does not require documentation changes

A section about strip-wsnames needs to be added to the wiki page of the i3 module. The description of strip-wsnumbers should probably also be made a bit preciser:

; This will split the workspace name on ':' and only keep the second part
; Default: false
strip-wsnumbers = true

; This will split the workspace name on ':' and only keep the first part
; Default: false
; New in version 3.8.0
strip-wsnames = true

Add support for stripping the name of i3 workspaces similar to how it
can be done with their number. This brings polybar up to par with i3bar
in that regard.

Link: https://i3wm.org/docs/userguide.html#_strip_workspace_numbers_name
@druckdev druckdev force-pushed the pr3229-i3-strip-wsnames branch from dabdfae to 9495926 Compare October 9, 2025 11:39
druckdev added a commit to druckdev/dotfiles that referenced this pull request Dec 4, 2025
Use normal workspace numbers with the output name as workspace name, but
strip the name in polybar.

See polybar/polybar#3230 for strip-wsnames.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant