nwg-piotr / nwg-displays

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

workspaces.conf location should follow monitors.conf since they are complementary #43

Open hakan-demirli opened 6 months ago

hakan-demirli commented 6 months ago

monitors.conf location can be specified by -m flag. However, workspaces.conf is still using the default location and it is not configurable. I think it should either follow monitors.conf or has its own customizable path.

nwg-displays -m ~/.local/share/hypr/monitors.conf

Error parsing workspaces.conf file: [Errno 2] No such file or directory: '/home/USERNAME/.config/hypr/workspaces.conf'
WS->Mon: ({}, {})
Traceback (most recent call last):
  File "/nix/store/jswzg6ad04gj68qppwkkjc67x7r4nc7z-nwg-displays-0.3.8/lib/python3.10/site-packages/nwg_displays/main.py", line 667, in create_workspaces_window_hypr
    old_workspaces = workspaces.copy()
AttributeError: 'tuple' object has no attribute 'copy'