1
0
mirror of https://github.com/emersion/kanshi synced 2024-11-26 05:55:27 +01:00
Commit Graph

84 Commits

Author SHA1 Message Date
Simon Ser
57c135f203
readme: switch to new profile syntax 2020-04-02 11:05:06 +02:00
Simon Ser
b221460388
Bump to v1.1.0 v1.1.0 2020-04-02 11:03:08 +02:00
Simon Ser
ef4c7f083d
Require profiles with a name to have a profile directive
Also make the syntax without a "profile" directive legacy by removing
docs for it.

Closes: https://github.com/emersion/kanshi/issues/75
2020-03-30 15:45:31 +02:00
Rikard Falkeborn
dc9f4c8fc3 Fix parser_next_token return value
Returning a negative value in a function with bool as return value
is the same as returning true. Fix this by returning false to indicate
failure.
2020-02-22 21:24:07 +01: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
Martin Michlmayr
c92aa4af0c Use correct formatting for variable in man page 2019-12-09 11:15:03 +01:00
Martin Michlmayr
199788c331 Fix typo in man page 2019-12-06 10:50:10 +01:00
Bartosz Taczała
c848893b23 Add support for comments in configuration file
Supported comments are:

    # here
    {
        # or here
        output eDP-1 mode 1920x1080 # or here
    }

Co-authored-by: Simon Ser <contact@emersion.fr>
2019-11-29 19:09:58 +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
Michael Aquilina
823cdb0f6f Specify correct version in meson.build
kanshi 1.0.0 has been released to github but meson.build was not updated
to reflect this yet.
2019-09-06 20:20:23 +03:00
Simon Ser
e4da814a60
readme: drop mention of sway
sway 1.2 has been released. No need for the latest Git commit anymore.
v1.0.0
2019-08-27 09:07:51 +03:00
danieljampen
d4a3c5ba15 convert refresh rate from Hz to mHz after parsing 2019-08-13 08:00:03 +02:00
Simon Ser
33e39a444e
Add missing LICENSE
Closes: https://github.com/emersion/kanshi/issues/45
2019-08-12 11:45:55 +03:00
Ben Widawsky
76e9f4151f Fix the path for installed man pages. 2019-06-07 23:15:40 +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
725d7881b3
readme: add a note about required sway version 2019-06-03 07:55:45 +03:00
Simon Ser
be33c6699c
ci: add .build.yml 2019-06-01 13:33:46 +03:00
Simon Ser
530805c3b5 Showcase output identifiers in docs 2019-06-01 13:25:09 +03:00
Simon Ser
ab89b56785 Parse quoted strings 2019-06-01 13:25:09 +03:00
Simon Ser
689c989b92 Generate man pages 2019-06-01 13:25:09 +03:00
Simon Ser
4b16771942 Add docs 2019-06-01 13:25:09 +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
1cbfcca0ca readme: add reference to sway-output(5) 2019-06-01 13:25:09 +03:00
Simon Ser
e36d1b8253 Add IRC channel to README 2019-06-01 13:25:09 +03:00
Simon Ser
c873e4b01a Remove vendor/product/serial from README 2019-06-01 13:25:09 +03:00
Simon Ser
0ba4ad4951 Parse output values 2019-06-01 13:25:09 +03:00
Simon Ser
9d11810e44 Parse output keys 2019-06-01 13:25:09 +03:00
Simon Ser
ddb8682b9e Add basic parser 2019-06-01 13:25:09 +03:00
Simon Ser
c1f6c85052 To the trash it goes
Remove all Rust code, it will be completely replaced with a C version.

* Rust as a language is too complicated
* New Rust releases break builds
* Rust makes it difficult for new contributors to jump in
2019-06-01 13:25:09 +03:00
Eric Drechsel
970267e400 README.md(Usage): create .config/kanshi dir 2019-02-03 00:21:00 +01:00
emersion
c97715789d
Merge pull request #19 from mlbullett/master
Added support for rotation
2019-01-09 18:05:39 +01:00
mlbullett
2df7c5455b Changed transform option to enum and implemented matching in frontend 2019-01-09 16:53:22 +01:00
mlbullett
e77b444448 Adjusted syntax to match sway and added flipping 2018-11-27 12:06:24 +01:00
mlbullett
359313bf2e Added support for rotation 2018-11-26 17:08:49 +01:00
emersion
216a27f84c
readme: remove udev rule
SWAYSOCK isn't set so this can't work
2018-11-23 18:56:53 +01:00
emersion
02bd8c2706
Downgrade to nom 3
I should never have used this library. Macros suck.

Fixes https://github.com/emersion/kanshi/issues/15
2018-11-18 11:39:00 +01:00
emersion
9225ab4955
Update dependencies 2018-11-18 10:56:07 +01:00
emersion
dd2362b9a8
Fix "position" command sent to sway
See https://github.com/emersion/kanshi/issues/15
2018-11-18 10:53:13 +01:00
emersion
1d3f301243
Add support for fractional scaling
Fixes https://github.com/emersion/kanshi/issues/15
2018-11-18 00:15:11 +01:00
emersion
ed21acce0c
Merge pull request #14 from colemickens/master
update dependencies
2018-11-05 11:42:19 +01:00