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
- Host: GitHub
- URL: https://github.com/fuco1/xmonitor
- Owner: Fuco1
- Created: 2016-12-30T18:52:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-30T18:54:03.000Z (about 9 years ago)
- Last Synced: 2025-04-01T13:15:17.673Z (11 months ago)
- Language: C
- Size: 1000 Bytes
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```