fabric icon indicating copy to clipboard operation
fabric copied to clipboard

Non-numeric workspace names causing a crash

Open FakeMichau opened this issue 7 months ago • 0 comments

https://github.com/Fabric-Development/fabric/commit/ca629ac4030048a9c63c6e780386af9ce42cef4c has added a new event but from a quick search it seems like it needs to use focusedmonv2 instead of focusedmon to be able to handle workspaces with custom names.

ref: https://github.com/hyprwm/Hyprland/blob/e5df8cdc6227e35fa225acd15cdcc75abe3347cb/src/Compositor.cpp#L2667

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/fabric/hyprland/widgets.py", line 204, in on_monitor
    active_workspace = int(event.data[1])
ValueError: invalid literal for int() with base 10: 'ン'

Similar to: https://github.com/Fabric-Development/fabric/issues/69

FakeMichau avatar May 07 '25 14:05 FakeMichau