[GH-ISSUE #705] Favourite-Workspace that was focused during start of ironbar disappears when switching to a different workspace #233

Closed
opened 2026-05-22 21:52:08 +01:00 by JakeStanger · 0 comments
Owner

Originally created by @Lxtharia on GitHub (Aug 13, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/705

Describe the bug
When adding favorites in the workspace module, the workspaces that were active when ironbar starts disappear when empty or emptied and I'm switching to a different workspace on that screen.
They stay hidden when trying to switch back.

To Reproduce
Steps to reproduce the behavior:
1.

[[start]]
type = "workspaces"
favorites = [ "1", "2" ]
  1. switch to workspace 1
  2. Open something on ws-1
  3. start ironbar
    => ws-1 stays visible because something is open
  4. close whatever is on workspace 1
  5. switch to another workspace on that screen
    => workspace 1 disappears even though it is listed in favourites
  6. switch back to empty workspace 1 and open something
    => workspace 1 stays hidden, even though it should not

Expected behavior
All workspaces listed in the favorites array should be visible in the bar at all times, even when empty.

System information:

  • Distro: Arch Linux
  • Compositor: Sway
  • Ironbar version: 0.16.1-pre

Configuration

Share your bar configuration and stylesheet as applicable:

Config
position = "top"
height = 24

[[start]]
type = "workspaces"
# all_monitors = false
# favorites = { "DVI-D-1"=[ "1", "2", "3", "4" ] }
favorites = [ "1", "2" ]

center=[]

[[end]]
type = "tray"
direction = "right_to_left"

[[end]]
type = "music"
format = "{title}"

[[end]]
type = "clock"
format = "%d/%b/%Y | %H:%M:%S"

[[end]]
type = "notifications"
show_count = true

issue persists even when using no stylesheet

Additional context

Screenshots

Originally created by @Lxtharia on GitHub (Aug 13, 2024). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/705 **Describe the bug** When adding favorites in the workspace module, the workspaces that were active when ironbar starts disappear when empty or emptied and I'm switching to a different workspace on that screen. They _stay_ hidden when trying to switch back. **To Reproduce** Steps to reproduce the behavior: 1. ```toml [[start]] type = "workspaces" favorites = [ "1", "2" ] ``` 2. switch to workspace 1 3. Open something on ws-1 4. start ironbar => ws-1 stays visible because something is open 5. close whatever is on workspace 1 6. switch to another workspace on that screen => workspace 1 disappears even though it is listed in favourites 7. switch back to empty workspace 1 and open something => workspace 1 _stays_ hidden, even though it should not **Expected behavior** All workspaces listed in the favorites array should be visible in the bar at all times, even when empty. **System information:** - Distro: Arch Linux - Compositor: Sway - Ironbar version: 0.16.1-pre **Configuration** > Share your bar configuration and stylesheet as applicable: <details><summary>Config</summary> ```toml position = "top" height = 24 [[start]] type = "workspaces" # all_monitors = false # favorites = { "DVI-D-1"=[ "1", "2", "3", "4" ] } favorites = [ "1", "2" ] center=[] [[end]] type = "tray" direction = "right_to_left" [[end]] type = "music" format = "{title}" [[end]] type = "clock" format = "%d/%b/%Y | %H:%M:%S" [[end]] type = "notifications" show_count = true ``` </details> issue persists even when using no stylesheet **Additional context** **Screenshots**
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#233
No description provided.