Skip to content

Instantly share code, notes, and snippets.

View gauravsharma013's full-sized avatar
🏠
Working from home

Gaurav Sharma gauravsharma013

🏠
Working from home
  • Jalandhar, Punjab, INDIA
View GitHub Profile
@ninlith
ninlith / tablet_mode.py
Last active November 13, 2021 18:08
Tablet mode (disable keyboard etc.) for a Crouton chroot
#!/usr/bin/env python3
# -*- indent-tabs-mode: nil; tab-width: 4 -*-
"""Enable/disable tablet mode in a Crouton chroot based on lid angle."""
import argparse
import logging
import logging.config
import math
import os