1
0
mirror of https://github.com/emersion/kanshi synced 2024-09-19 18:35:44 +02:00

Document config file in README

This commit is contained in:
emersion 2017-08-13 18:56:30 +02:00
parent aea2a96789
commit 607d2ef5ac
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -14,11 +14,28 @@ For now, it only supports:
## Usage ## Usage
``` ```sh
cargo install kanshi cargo install kanshi
touch ~/.config/kanshi/config
kanshi > ~/.config/sway/outputs kanshi > ~/.config/sway/outputs
``` ```
### Configuration file
Each monitor configuration is delimited by brackets. Each line has the same
syntax as `sway(5)`.
```
{
output LVDS-1 disable
output VGA-1 resolution 1600x900 position 0,0
}
{
output LVDS-1 vendor CMN product 0x1484 serial 0x0 resolution 1600x900 scale 2
}
```
## License ## License
MIT MIT