Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vilicvane/active-mouse
https://github.com/vilicvane/active-mouse
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vilicvane/active-mouse
- Owner: vilicvane
- License: mit
- Created: 2023-08-29T21:30:20.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-03T14:47:57.000Z (7 months ago)
- Last Synced: 2024-11-30T15:41:49.438Z (24 days ago)
- Language: TypeScript
- Size: 404 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![NPM version](https://img.shields.io/npm/v/active-mouse?color=%23cb3837&style=flat-square)](https://www.npmjs.com/package/active-mouse)
[![Repository package.json version](https://img.shields.io/github/package-json/v/vilic/active-mouse?color=%230969da&label=repo&style=flat-square)](./package.json)
[![MIT License](https://img.shields.io/badge/license-MIT-999999?style=flat-square)](./LICENSE)
[![Discord](https://img.shields.io/badge/chat-discord-5662f6?style=flat-square)](https://discord.gg/vanVrDwSkS)# Active Mouse
## Usage
```sh
active-mouse [config]
active-mouse [config] --startup
active-mouse [config] --disable-startup
```### Server
**.config.mjs**
```js
import {spawn} from 'child_process';const CONTROL_MY_MONITOR_PATH =
'C:\\Utilities\\controlmymonitor\\ControlMyMonitor.exe';// Try out the configs with ControlMyMonitor.exe first.
const MONITOR = ''; // Could be serial number
const MONITOR_INPUT_DICT = {
'vane-station': '15', // DisplayPort in my case
'vane-mba': '27', // Type-C in my case
};export default {
type: 'server',
name: 'vane-station',
action(name) {
spawn(CONTROL_MY_MONITOR_PATH, [
'/SetValue',
MONITOR,
'60',
MONITOR_INPUT_DICT[name],
]);
},
};
```### Client
**.config.mjs**
```js
export default {
type: 'client',
name: 'vane-mba',
host: '192.168.1.10',
};
```## License
MIT License.