Skip to content
/ monmon Public

A monitor (service) for your monitor (display). Intercepts window behaviour when monitor configuration changes.

Notifications You must be signed in to change notification settings

danitt/monmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mon-Mon

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.

Quick Start

  1. cp .env.example .env
  2. cargo run

Installation

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

Commands

  • 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

Flags

  • --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

Running as Background Service

  1. First make sure you have installed the monmon binary.
  2. Run monmon --blacklist="[comma-separated-displays]" install Note: the background service can be uninstalled with monmon uninstall

Troubleshooting

  • "Command not found: monmon"
    • If you are using asdf package manager, try asdf reshim

About

A monitor (service) for your monitor (display). Intercepts window behaviour when monitor configuration changes.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages