A monitor (service) for your monitor (display).
Listens for changes to display configuration (e.g. plugging in an additional screen) and allows you to blacklist monitors from displaying windows when they are initially connected - useful for public settings where you don't want to flood the audience with all of your open applications.
cp .env.example .env
cargo run
To make this app globally accessible, you can either download the compiled binary from Releases and drop it in your $PATH, or use cargo
's handy install command from the root of this project: cargo install --path .
You will then be able to run commands from your terminal from any directory, e.g. $ monmon --blacklist="samsung" watch
monmon
- the default command; shoves everything to your primary display and exits.monmon watch
- runs continually; will only move windows to the primary display if it detects a blacklisted monitor being plugged in (see flags)- e.g.
monmon --blacklist="samsung" watch
- e.g.
--blacklist, -b
- a comma-separated list of display/monitor names to trigger moving windows to primary display- Note: this may also be supplied as an environment variable
BLACKLIST_DISPLAYS
- Note: this may also be supplied as an environment variable
- First make sure you have installed the
monmon
binary. - Run
monmon --blacklist="[comma-separated-displays]" install
Note: the background service can be uninstalled withmonmon uninstall
- "Command not found: monmon"
- If you are using asdf package manager, try
asdf reshim
- If you are using asdf package manager, try