chuwi-minibook-tablet-mode/README.md

27 lines
959 B
Markdown
Raw Normal View History

2019-03-23 14:11:21 +01:00
# tablet-mode
Allow users to toggle a convertible laptop between laptop and tablet mode.
## Configuration
2020-03-26 11:49:57 +01:00
The devices to be deactivated in either *tablet* or *laptop* mode must be specified in `/etc/tablet-mode.json`.
2021-05-14 21:08:01 +02:00
You can specify whether desktop notifications shall be send when changing the mode using the `notify` flag.
If specified, you can override `sudo` to provide another program that accepts commands to be run as root without a password
by the current user to elevate privileges, such as *doas*.
2019-09-02 11:58:39 +02:00
2021-05-14 21:08:01 +02:00
```json
{
"tablet": [
"/dev/input/by-path/platform-i8042-serio-0-event-kbd",
"/dev/input/by-path/platform-i8042-serio-1-event-mouse"
],
"notify": false,
"sudo": "/usr/bin/doas"
}
```
2019-03-23 14:11:21 +01:00
## Usage
2019-03-23 15:22:09 +01:00
You must be a member of the group `tablet` to toggle between tablet and laptop mode.
2019-09-03 23:45:24 +02:00
You can toggle between tablet and laptop mode by running `setsysmode toggle` or use the desktop icon provided with this package.