1
0
mirror of https://github.com/emersion/kanshi synced 2024-11-23 00:02:16 +01:00
Dynamic display configuration
Go to file
emersion c97715789d
Merge pull request #19 from mlbullett/master
Added support for rotation
2019-01-09 18:05:39 +01:00
src Changed transform option to enum and implemented matching in frontend 2019-01-09 16:53:22 +01:00
.gitignore List saved and connected displays 2017-08-04 16:02:25 +02:00
Cargo.lock Downgrade to nom 3 2018-11-18 11:39:00 +01:00
Cargo.toml Downgrade to nom 3 2018-11-18 11:39:00 +01:00
README.md readme: remove udev rule 2018-11-23 18:56:53 +01:00

kanshi

Kanshi uses a configuration file and a list of available displays to choose the right settings for each display. It's useful if your window manager doesn't support multiple display configurations (e.g. i3/Sway).

For now, it only supports:

  • sysfs as backend
  • udev as notifier (optional)
  • Configuration file
    • GNOME (~/.config/monitors.xml)
    • Kanshi (see below)
  • Sway as frontend

Usage

cargo install kanshi
touch ~/.config/kanshi/config
kanshi

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

MIT