swaylock
swaylock copied to clipboard
Support output IDs
I need to support targeting the output with the output identifier (Dell Inc. DELL U3223QE GB6Y9P3
) rather than just the output name (eg. DP-6
) because the output name might change every time I replug my monitors and I want my internal OLED display to have no image while my external monitors should have a nice image.
Example:
swaylock -f -c 000000 --image "Dell Inc. DELL U3223QE GB6Y9P3":~/Pictures/1.jpg -d
The wl_output_description returns the full model, make and output name so I am trimming the output name from the output description to match kanshi and sway output id matching.