kanshi/README.md

53 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2017-08-04 09:02:25 -05:00
# kanshi
2019-06-01 05:08:05 -05:00
kanshi allows you to define output profiles that are automatically enabled and
disabled on hotplug. For instance, this can be used to turn a laptop's internal
screen off when docked.
This is a Wayland equivalent for tools like [autorandr]. kanshi can be used on
Wayland compositors supporting the wlr-output-management protocol.
2017-08-05 03:33:16 -05:00
2019-05-30 07:46:11 -05:00
Join the IRC channel: ##emersion on Freenode.
2019-06-01 05:08:05 -05:00
## Building
2019-06-01 05:14:36 -05:00
Dependencies:
* wayland-client
* scdoc (optional, for man pages)
2019-06-01 05:08:05 -05:00
```sh
meson build
ninja -C build
```
2017-08-05 03:33:16 -05:00
## Usage
2017-08-13 11:56:30 -05:00
```sh
mkdir -p ~/.config/kanshi && touch ~/.config/kanshi/config
2018-09-16 07:18:59 -05:00
kanshi
2017-08-05 03:33:16 -05:00
```
2017-08-04 09:02:25 -05:00
2019-06-01 05:08:05 -05:00
## Configuration file
2017-08-13 11:56:30 -05:00
2019-06-01 05:08:05 -05:00
Each output profile is delimited by brackets. It contains several `output`
directives (whose syntax is similar to `sway-output(5)`). A profile will be
enabled if all of the listed outputs are connected.
2017-08-13 11:56:30 -05:00
```
2020-04-02 04:05:06 -05:00
profile {
2017-08-13 11:56:30 -05:00
output LVDS-1 disable
2019-06-01 05:23:54 -05:00
output "Some Company ASDF 4242" mode 1600x900 position 0,0
2017-08-13 11:56:30 -05:00
}
2020-04-02 04:05:06 -05:00
profile {
2019-06-01 05:08:05 -05:00
output LVDS-1 enable scale 2
2017-08-13 11:56:30 -05:00
}
```
2017-08-04 09:02:25 -05:00
## License
MIT
2019-06-01 05:08:05 -05:00
[autorandr]: https://github.com/phillipberndt/autorandr