Skip to content

ai-mods/tablet-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TabletToggle

Windows 10/11 PowerShell License: MIT No Dependencies

A lightweight Windows system tray utility that toggles between Laptop and Tablet mode on convertible devices.

Many 2-in-1 devices fail to automatically switch modes when a keyboard is attached or removed. This tool adds a one-click toggle to your system tray.

Features

  • One-click toggle — left-click the tray icon to switch between Laptop and Tablet mode
  • Remembers your choice — persists the selected mode across reboots
  • Auto-start with admin rights — optionally runs at login via Task Scheduler (no UAC prompt)
  • Dark & Light theme — tray icon adapts to your Windows taskbar theme automatically
  • Uninstall option — cleanly removes autostart and app data from the context menu
  • Zero dependencies — pure PowerShell + .NET Framework (built into Windows)

Requirements

  • Windows 10 or 11
  • Administrator privileges (required for registry access)

Getting Started

  1. Download the latest release or clone this repository
  2. Run TabletToggle-Start.bat — it will request admin elevation automatically
  3. A tray icon appears: left-click to toggle, right-click for options

To start manually from an elevated PowerShell:

powershell -ExecutionPolicy Bypass -WindowStyle Hidden -File ".\TabletToggle.ps1"

How It Works

TabletToggle sets two standard Windows registry values:

Registry Key Value Laptop Tablet
HKLM\...\PriorityControl ConvertibleSlateMode 0 1
HKCU\...\ImmersiveShell TabletMode 0 1

These are generic Windows keys — not device-specific. Works on any Windows convertible.

Icon Theming

The tray icon adapts to your taskbar theme (light or dark), checked every 5 seconds. Custom icons are loaded from:

icons/
├── dark/      ← dark taskbar (white/light icons)
│   ├── laptop.ico
│   └── tablet.ico
└── light/     ← light taskbar (dark icons)
    ├── laptop.ico
    └── tablet.ico

If no icon files are found, colored fallback icons are generated automatically.

Tested On

  • ASUS ProArt PZ13 (HT5306)

Tested on another device? Open an issue or PR to add it here.

License

MIT

About

A lightweight Windows system tray utility that toggles between Laptop and Tablet mode on convertible devices.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors