https://github.com/realorangeone/yoga-pal
Command line tool for controlling screen rotation on 2-in-1 laptops
https://github.com/realorangeone/yoga-pal
Last synced: 3 months ago
JSON representation
Command line tool for controlling screen rotation on 2-in-1 laptops
- Host: GitHub
- URL: https://github.com/realorangeone/yoga-pal
- Owner: RealOrangeOne
- License: mit
- Created: 2015-11-18T22:49:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-01-17T18:21:15.000Z (over 4 years ago)
- Last Synced: 2025-04-02T12:04:53.723Z (about 1 year ago)
- Language: Python
- Homepage: https://theorangeone.net/projects/yoga-pal/
- Size: 18.6 KB
- Stars: 13
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yoga-Pal [](https://circleci.com/gh/RealOrangeOne/yoga-pal)
Command line tool for controlling screen rotation on Lenovo Yoga laptops. This tool is specifically designed for and test on Yoga laptops, other devices support may vary.
## Requirements
* Python 3
* Pip
## Installation
Installation can be done in 2 ways, both of which involve the `install.sh` script.
##### Option 1
1. Clone the repo
2. cd into it
3. run `install.sh`
##### Option 2
1. Download the `install.sh` file
2. Put the file in the directory you want to install into
3. run `install.sh`
## Development
If you wish to install this in a development environment, clone the repo, and then:
scripts/build
source env/bin/activate
pip install --editable .
__Note__: Installation must be done with an active internet connection.
## Usage
### Rotate
yoga rotate screen
yoga rotate touch
yoga rotate all
Rotates the screen, touchscreen, or both. All is used by default if no component is givens.
__Note__: Rotating touchscreen is likely done automatically with screen, and cannot be overriden. Only added as a catch-all.
Flags `--flip` and `--default` can be added to this command to specify the orientation required.
### Enable & Disable
yoga enable trackpad
yoga disable trackpad
yoga enable touch
yoga disable touch
yoga enable all
yoga disable all
Disables / Enables the trackpad, touch screen, or both. All is used by default if no component is given.
### Modes
yoga mode laptop
yoga mode tablet
yoga mode list
Switches your device between the modes of yoga devices, configuring the optimum setup automatically. You can use `yoga mode list` to see all the available modes.