Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chmln/enact
Easy dual-monitor setup and hotplug support for minimalistic window managers
https://github.com/chmln/enact
auto bspwm i3 xrandr
Last synced: about 2 months ago
JSON representation
Easy dual-monitor setup and hotplug support for minimalistic window managers
- Host: GitHub
- URL: https://github.com/chmln/enact
- Owner: chmln
- Created: 2018-06-25T01:36:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-13T17:48:27.000Z (over 1 year ago)
- Last Synced: 2024-10-14T13:50:42.997Z (2 months ago)
- Topics: auto, bspwm, i3, xrandr
- Language: Rust
- Homepage:
- Size: 24.4 KB
- Stars: 97
- Watchers: 6
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
enact`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:
- a laptop and an abritrary secondary monitor (e.g. at work, home, etc.)
- a desktop with two monitors## Install
Download the binary from [releases](https://github.com/chmln/enact/releases) or install via cargo: `cargo install --git https://github.com/chmln/enact`
## Usage
Test it out then place this in your `.xinitrc`.
```sh
# Set up second monitor above laptop
enact --pos top
```Or to do the same, but also watch for changes and allow hotplugging
```sh
enact --pos top --watch &
```You can also select which monitor will be the new primary one
```sh
enact --pos top --new_primary 1
```## Comparison With Similar Tools
Pros:
- monitor hotplugging that actually works (never got this to work with autorandr or any other tool)
- no need to setup any "profiles" or configuration, it just works
- Single compiled binary, no dependencies on python or anything else apart from `xrandr`Drawbacks:
- Supports up to two displays max (at least currently)## Icon Attribution
[“Monitor”](https://www.iconfinder.com/icons/4064140/computer_hardware_monitor_screen_technology_icon) by [icon lauk](https://www.iconfinder.com/andhikairfani), licensed under CC BY 3.0.