From Tarek Marcé to ~emersion/public-inbox
Hello @emersion, any thoughts on this ? Just notice this is the solution you suggests on the issue https://todo.sr.ht/~emersion/kanshi/49 It would works in most usecases and it would be even more usefull since wildcards outputs are not allowed anymore.
From Tarek Marcé to ~emersion/public-inbox
--- This fixes the missing '\' in the man page. doc/kanshi.5.scd | 7 ++++--- main.c | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/kanshi.5.scd b/doc/kanshi.5.scd index 74ada4d..8b97d6d 100644 --- a/doc/kanshi.5.scd +++ b/doc/kanshi.5.scd @@ -71,9 +71,10 @@ quoted (with *"*) if they contain spaces. may change across reboots (depending on kernel driver probe order) or creation order (typically for USB-C docks). [message trimmed]
From Tarek Marcé to ~emersion/public-inbox
This patch adds support for wildcard in output identifier. This is
useful in some case where the serial number or the model is not known or
can change. Since it is not possible anymore to have multiple wildcard
output this commit is useful for openspace where the monitors are all
the same model but not the same serial number.
It uses the fnmatch function of the libc to allow shell wildcard pattern
in output name string.
Here is an example of a working configuration:
profile atWork {
output eDP-1 mode 1920x1200 position 960,1080
output "HP Inc. HP E24m G4 CN*" {
[message trimmed]