This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# toggle tablet mode script | |
# | |
# Toggles the keyboard and touchpad on and off for tablet mode on many devices | |
# PLEASE ENSURE THAT YOU ARE USING GNOME OR RUNNING SOME ONBOARD KEYBOARD APP BEFORE RUNNING THIS SCRIPT. | |
# This toggler a system variable named TABLET_MODE, OFF and then turns it ON | |
# Depends on `notify-send` and `xinput` | |
# if you dont have any: `brew install libnotify xinput` | |
# Must run using `source ./tgTABLETMODE.sh` | |
# would appreciate if anyone could turn this in a GNOME Plugin |