Easy dual-monitor setup and hotplug support for minimalistic window managers
enact
will detect the proper resolution of your secondary monitor (if any) and automatically set it up as soon as you plug it in (or out).
It uses xrandr
under the hood and works great with window managers like i3, bspwm, and others.
Use cases:
Download the binary from releases or install via cargo: cargo install --git https://github.com/chmln/enact
Test it out then place this in your .xinitrc
.
# Set up second monitor above laptop
enact --pos top
Or to do the same, but also watch for changes and allow hotplugging
enact --pos top --watch &
You can also select which monitor will be the new primary one
enact --pos top --new_primary 1
Pros:
xrandr
Drawbacks: