Commit Graph
7 Commits
Author SHA1 Message Date
Stefan Zipproth 692c5ff90e Fix profile matching for unquoted output syntax
The match() function was still using the old quoted output syntax
("output \"%99[^\"]\"" pattern) which fails to match profiles
written with the new unquoted syntax (output DP-3).

This caused duplicate profiles to be created instead of updating
existing ones. Now supports both quoted (legacy) and unquoted
(current) output formats for backward compatibility.
2025-06-27 22:41:40 +02:00
Stefan Zipproth 2e7f3834e0 Fix kanshi compatibility by using output names instead of descriptions
Kanshi fails to match profiles when output descriptions contain parentheses
like 'Iiyama North America PL2294H2 1207823601758 (DP-3)'. According to
kanshi(5) manual, valid output criteria are:
- Output names (e.g. 'DP-1')
- Manufacturer/Model/Serial without parentheses

This changes store.c to use head->name (e.g. 'DP-3') instead of
head->description, making kanshi profiles work correctly.

Fixes 'no profile matched' error when kanshi tries to apply configurations.
2025-06-27 16:34:55 +02:00
Jason André Charles Gantner 1fd8447fbb make kanshi config update an optional feature 2025-07-08 15:30:19 +02:00
Jason André Charles GantnerandTanShaochang 3d81cf5199 Add licensing header(s) (#3)
* Add partial licensing header

* add licensing info where needed

* Update SPDX header in store.c

---------

Co-authored-by: TanShaochang <30321432+petertheprocess@users.noreply.github.com>
2025-07-08 02:10:16 +02:00
Jason André Charles Gantner 3a07d4174c PR#11 improvment proposal (#1)
* check config path only on startup

* use HEADS_MAX from wdisplays.h

* remove useless strcpy

* update readme and meson syntax

* clang-format
2025-07-01 00:40:16 +02:00
Shaochang Tan 397ea38968 1. remove vscode settings
2. check $XDG_CONFIG_HOME before $HOME
3. all MAX SIZE now use platform-based macro from limits.h rather than magic number
2024-05-31 20:45:27 +02:00
Shaochang Tan 790e33e9d8 add new feature: autosave config profile for kanshi. 2023-10-08 09:09:22 +02:00