mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 07:15:19 +01:00
[GH-ISSUE #1458] Workspaces widget tries to move to invalid workspace when the workspace in question is named #443
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#443
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fhungus on GitHub (Apr 18, 2026).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1458
Describe the bug
When the workspaces in Hyprland are named, on click of one of the widgets, you are either moved to workspace 1 or attempted to be moved to a large, negative number.
To reproduce
Steps to reproduce the behavior:
Expected behavior
It should have switched to the appropriate workspace.
System information:
Configuration
This seems to still happen on the default configuration.
Additional context
The first time i observed this error the negative number it tried to switch to was -1337, which didn't look coincidental, so I thought could be a default in case the widget couldn't properly get the number, but the codebase does not have a mention of the number 1337, nor does the hyprland-rs crate.
However, for some reason, the number is no longer -1337.
This doesn't seem to be limited to specifically the names mentioned either, on my system anything will work. The reason I had to rename these in the first place is because for some reason GTK's CSS will not accept leading numbers when selecting based on ID, and I'm trying to theme each workspace differently.
Screenshots


@JakeStanger commented on GitHub (Apr 22, 2026):
Related: #964
I don't think it's quite the same issue but definitely stems from the same problem.
@CameronBarnes commented on GitHub (Apr 23, 2026):
From when I was working on the other workspace issues all the reading I did mentioned Hyprland using large negative numbers to represent named unnumbered workspaces. -1337 in particular appears to be a common default value that hyprland will use.
@CameronBarnes commented on GitHub (Apr 25, 2026):
I havent been unable to reproduce this problem. @fhungus Can you be more specific about the following things please.
Depending on how exactly this is setup, it's possible that this is caused by the known issue with named favorite workspaces, but I'm not sure.