Commit Graph
16 Commits
Author SHA1 Message Date
Mars-Wave e0699ff04d Report kanshi config errors in the info bar only 2026-03-03 19:17:07 +01:00
Mars-Wave 9cf3651140 Name new kanshi outputs by their EDID identity 2026-02-25 21:52:28 +01:00
Mars-Wave 6bed905159 Keep a symlinked kanshi config a symlink 2026-02-23 20:46:49 +01:00
Mars-Wave 0e9f444947 Create a missing kanshi config directory 2026-02-22 21:56:10 +01:00
Mars-Wave f20965d6ce Parse the kanshi config the way kanshi does 2026-02-20 20:55:52 +01:00
Mars-Wave b099e8aeb2 Look up the kanshi config path with GLib 2026-02-15 20:02:50 +01:00
Mars-Wave dd2a2155f4 Write kanshi numbers in the C locale 2026-02-14 21:52:29 +01:00
Mars-Wave d428057171 Write 'disable' for outputs that are turned off 2026-02-11 19:31:21 +01:00
Mars-Wave 494563d48f Write every transform to the kanshi config 2026-02-10 21:24:48 +01:00
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