An open API service indexing awesome lists of open source software.

https://github.com/fuco1/xmonitor

Simple utility to run scripts when monitors attach or detach
https://github.com/fuco1/xmonitor

Last synced: 4 months ago
JSON representation

Simple utility to run scripts when monitors attach or detach

Awesome Lists containing this project

README

          

# xmonitor

Simple utility deamon that listens to `XRRScreenChangeNotifyEvent` and runs scripts when external monitors are attached or detached.

Scripts are searched for in `~/.screenlayout/attach.d` or `~/.screenlayout/detach.d`; these directories are run with `run-parts`.

# Usage

After you git-clone this repository run

``` shell
make
```

Place your scripts in `~/.screenlayout/.d` (where `` is either `attach` or `detach`), then run

```bash
./xmonitor
```