https://github.com/unclechu/xinput-restore
Saving and restoring xinput devices properties utility
https://github.com/unclechu/xinput-restore
Last synced: 8 months ago
JSON representation
Saving and restoring xinput devices properties utility
- Host: GitHub
- URL: https://github.com/unclechu/xinput-restore
- Owner: unclechu
- License: gpl-3.0
- Created: 2014-01-10T00:40:02.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-09T23:37:55.000Z (almost 11 years ago)
- Last Synced: 2024-12-27T22:20:58.693Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 176 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
xinput-restore
==============
Saving and restoring xinput devices properties utility.
Usage
=====
Find the ID of your device in the list:
```bash
$ xinput list
```
Save properties of your device
(replace %ID% to ID number of your device from `xinput list`):
```bash
$ xinput-restore --save %ID%
```
It will save properties of your device to file
with name as device name to `~/.xinput-saved-props/`.
You can specify custom file name:
```bash
$ xinput-restore --save %ID% red-mouse
```
You can change some properties in `~/.xinput-saved-props/`
Restore properties for specific device by file name:
```bash
$ xinput-restore --restore red-mouse
```
Or by device product id:
```bash
$ xinput-restore --restore '1452, 781'
```
Restore properties by all saved properties files:
```bash
$ xinput-restore
```
Also you can redefine saved properties files directory:
```bash
$ env XINPUT_RESTORE_PROPS_DIR="$HOME/.custom-saved-xinput-props-dir" xinput-restore
```