JakeStanger / ironbar

Customisable Wayland gtk bar written in Rust.
https://crates.io/crates/ironbar
MIT License
560 stars 47 forks source link

Favourite-Workspace that was focused during start of ironbar disappears when switching to a different workspace #705

Open Lxtharia opened 1 month ago

Lxtharia commented 1 month ago

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:

Configuration

Share your bar configuration and stylesheet as applicable:

Config ```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 ```

issue persists even when using no stylesheet

Additional context

Screenshots