GhostNaN / mpvpaper

A video wallpaper program for wlroots based wayland compositors.
GNU General Public License v3.0
805 stars 26 forks source link

Update output argument to accept Sway description identifier. #39

Closed Conner-PYS closed 5 months ago

Conner-PYS commented 1 year ago

I'm currently setting up my system using Sway and have been using the make, model, serial identifier for my output commands; not being able to use those same names to set my wallpaper was going to be a little annoying, so I went looking at the code.

I hardly ever work in C, so I'm mostly taking examples from the surrounding functions to add this functionality; I noticed the correct make, model, serial identifiers were already stored with the other output values, so the additional check is pretty trivial to make.

Also updated the help text and man page to reflect the change as well.

KingDuckZ commented 5 months ago

+1 I change monitors frequently

GhostNaN commented 5 months ago

I decided to implement this myself here: https://github.com/GhostNaN/mpvpaper/commit/a8f82fcb975cdb7f7c1709f30751f33fa9646764 So with that I'm closing this pull request, finally.