nwg-piotr / nwg-displays

Output management utility for sway and Hyprland.
MIT License
333 stars 21 forks source link

Set Filename in Configuration #62

Open bitSheriff opened 1 week ago

bitSheriff commented 1 week ago

I'd love to see the option to change the filenames for the monitor and workspaces file. This would help, if someone (as me) has a different "monitors.conf" file where other things for the monitor are configured.

I think adding the option to the configuration-file in .conf/nwg.displays/conf would not be that hard, and if you would like, I can take a look at it myself and open a pull-request after. Of course, leaving the current filenames as standard so it is backwards compatible and only relevant for those how like to change the names.

Optional another, further, idea in this direction would be to support the option to put the monitors.conf file inside a subfolder of hpyr/sway for those you like to structure their config a bit more

nwg-piotr commented 1 week ago

There exist 4 output files: ~/.config/sway/outputs, ~/.config/sway/workspaces, ~/.config/hypr/monitors.conf and ~/.config/hypr/workspaces.conf. Adding a possibility to configure a name of just one of them would be odd. As from my point of view nwg-displays is just a small part of the nwg-shell project, and works well as is, I feel no need to complicate the code for no reason. If you want to deal with it, you need to remember about all files.