Commit Graph

18 Commits

Author SHA1 Message Date
Kenny Levinsen 7095bedd25 Accept user-specified config path
Adds a -c,--config command line option that allows the user to specify
an arbitrary config path.
2020-10-08 19:31:03 +02:00
Guillaume Maudoux acfad026c5
Properly reap children to avoid zombies 2020-09-14 15:29:15 +02:00
Jan Beich 846b725637 Add missing header after 5a30abdf0b
../main.c:82:3: error: use of undeclared identifier 'sigset_t'
                sigset_t set;
                ^
../main.c:83:3: error: implicit declaration of function 'sigemptyset' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                sigemptyset(&set);
                ^
../main.c:83:16: error: use of undeclared identifier 'set'
                sigemptyset(&set);
                             ^
../main.c:84:3: error: implicit declaration of function 'sigprocmask' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                sigprocmask(SIG_SETMASK, &set, NULL);
                ^
../main.c:84:15: error: use of undeclared identifier 'SIG_SETMASK'
                sigprocmask(SIG_SETMASK, &set, NULL);
                            ^
../main.c:84:29: error: use of undeclared identifier 'set'
                sigprocmask(SIG_SETMASK, &set, NULL);
                                          ^
2020-04-02 23:22:55 +02:00
James Walmsley 86d6aff25f Select highest refresh rate for selected mode when none is specified. 2020-01-13 22:41:20 +01:00
James Walmsley 3d6b62ff0d Be tolerant to matching refresh rates that are a few points off. 2020-01-11 10:11:53 +01:00
Guillaume Maudoux 5a30abdf0b Add `exec` to execute commands when a configuration is matched 2019-09-20 12:59:04 +03:00
Guillaume Maudoux 15029bd28b Allow names to distinguish configurations 2019-09-20 12:59:04 +03:00
Simon Ser 38d27474b6 Fix head matches indexing
The `matches` array contained heads *and* was indexed by head. This didn't
make a lot of sense.

Instead, make it contain profile outputs and indexed by head.
2019-06-07 23:03:16 +03:00
Simon Ser 32666e0f58
Fix index in apply_profile loop
Closes: https://github.com/emersion/kanshi/issues/32
2019-06-06 08:35:47 +03:00
Simon Ser 72498b95dc
Fix index in match_profile 2019-06-06 08:33:58 +03:00
Simon Ser 46d1b9feb8
Make match_profile_output more strict
If "DP-1" is specified in the config, it could match a connected "eDP-1" head.
2019-06-06 08:29:28 +03:00
Simon Ser a348c8e875
Print profile output <-> head matching 2019-06-06 08:26:54 +03:00
Simon Ser 3a845a04ec Apply profile 2019-06-01 13:25:09 +03:00
Simon Ser 3de4464f23 Match profiles 2019-06-01 13:25:09 +03:00
Simon Ser 7ded2ed05c Extract config file logic into read_config 2019-06-01 13:25:09 +03:00
Simon Ser 7952a0b691 Listen to output-management events 2019-06-01 13:25:09 +03:00
Simon Ser 4f0ee6a165 Use XDG_CONFIG_HOME 2019-06-01 13:25:09 +03:00
Simon Ser ddb8682b9e Add basic parser 2019-06-01 13:25:09 +03:00