nwg-piotr / nwg-displays

Output management utility for sway and Hyprland.
MIT License
334 stars 22 forks source link

Error when workspaces.conf is missing #41

Open herrwusel opened 6 months ago

herrwusel commented 6 months ago

When the workspaces button is clicked, nwg-display just assumes there is a workspaces.conf under $HOME/.config/hypr/ which was not true for me.

Error parsing workspaces.conf file: [Errno 2] No such file or directory: '/home/user/.config/hypr/workspaces.conf'
WS->Mon: ({}, {})
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/nwg_displays/main.py", line 666, in create_workspaces_window_hypr
    old_workspaces = workspaces.copy()
                     ^^^^^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'copy'