Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Current i3 config breaks custom workspace names #35

Closed
deafmute1 opened this issue Jan 11, 2021 · 1 comment
Closed

Current i3 config breaks custom workspace names #35

deafmute1 opened this issue Jan 11, 2021 · 1 comment

Comments

@deafmute1
Copy link

deafmute1 commented Jan 11, 2021

Seems like there is a minor issue with the currently shipped i3-gaps config. If a user overrides the default workspace names to any value containing non-digit characters, it breaks all keybinds which operate on that workspace.

This is because the config references workspaces like this: workspace number $ws1. $ws1 is set by Xresources (i3-wm.workspace.1.name) and is intended to be user editable so that the user can set an arbitrary name, but this current syntax breaks if the $ws1 is not a integer. Solution is to use this syntax: workspace number 1 $ws1, note that I am now directly using the number to reference the workspace, but i3 also allows the pass through the name as a user-friendly identifier.

The only change to the UX is that the name of the workspace is now 1 <name>, not <name> altough i3-bar has inbuilt functionality to strip the leading number with strip_workspace_numbers so the user can have this shown to them in either format regardless.

@deafmute1 deafmute1 changed the title Current i3 config breaks custom names Current i3 config breaks custom workspace names Jan 11, 2021
@ferdinandyb
Copy link
Member

ferdinandyb commented Jan 13, 2021

You just need to set the name to have the numeric identifier as well, for example:
i3-wm.workspace.01.name: 1:<span font_desc='JetBrains Mono Medium 13'> new name </span>

Note the 1: at the beginning.

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

No branches or pull requests

2 participants