# deck-it Turns an Android tablet into a second monitor, a stream-deck and an always-on control surface for a Slackware Hyprland desktop. A web page on the tablet has tabs for a dashboard, windows, OBS, the K1C printer, the assistant, the VMs and the Xbox. A second headless output is streamed to AVNC as an extra monitor. Everything runs on the PC and reaches the tablet through `adb reverse`; there is no cloud, account or app-store install. ## Requirements **PC** - Slackware-current with Hyprland (Lua or classic config) - Python 3.11+ (`python3`) - `websocket-client` (obs-websocket) - `adb`, `wayvnc`, `openssl` - `playerctl`, `wpctl` (PipeWire), `wtype` - optional: `qrencode` for Wi-Fi pairing - optional: desktop-assistant and `qarma` for the Assistant tab **Tablet** - Android with USB debugging or Wireless debugging - [AVNC](https://github.com/gujjwal00/avnc) for the extended display - a Chromium-based browser for the web app (install it from the menu) ## Install ```sh git clone https://git.danix.xyz/deck-it ~/Programming/GIT/deck-it ln -s ~/Programming/GIT/deck-it/deck-it ~/bin/deck-it deck-it ``` The launcher creates the headless output, starts wayvnc and the server, tunnels them to the tablet, and opens the dashboard and AVNC. `deck-it stop` tears it down. For the dashboard alone, set `enabled = false` under `[display]`: no headless output, wayvnc or AVNC. Over Wi-Fi, pair once and pass the tablet's Wireless debugging address: ```sh deck-it pair deck-it wifi 192.168.1.50:41234 ``` Keystone's settings window has a deck-it page: a Start at login switch (it adds `deck-it wifi --wait` to hypr-theme's autostart) and every config key, launchers included, with a Restart button to apply a save. ## Usage - Tabs: **Dashboard**, **Windows**, **OBS**, **K1C**, **Assistant**, **VMs**, **Xbox**. Swipe the content sideways to change tab; ⟳ at the top right reloads the page. - `deck-it install` prints the `exec-once` line for USB autostart. - `config.toml` holds the defaults: display, Wi-Fi address, workspaces, launchers (desktop ids), OBS websocket, llm-cost-dashboard URL, build VM host, hardware overrides. `~/.config/deck-it/config.toml` overrides any of them key by key and needs only what differs; keystone writes it. - The OBS tab is a stream-deck: scenes, sources, audio sliders, transitions. Long-press a source to open its properties dialog in OBS. - The Dashboard is one fixed screen. A top band of chips shows system stats, Claude usage and the tablet's battery and Wi-Fi; music and spending sit below. A row appears only while something is running (a print, a build, an OBS recording or stream), and a tap opens its tab. The tablet's screen sleeps and wakes with the PC's lock, however it was locked. - The Windows tab has keystone's workspace icons, icon launchers, and a preview card per window (as in the Alt+Tab switcher): tap to focus, × to close, a long press to move it to another desktop. - The K1C tab follows a Klipper printer through Moonraker (`[k1c] url`): state, progress with the slicer's model preview, temperatures, camera, and a red emergency stop that fires on a press and hold. - The VMs tab shows libvirt's `qemu:///system` VMs as tiles: the VM's screen, CPU and RAM trends, "booting…" until sshd answers, a big power button (tap to start or shut down, hold to force off) and SSH, a tab in a running kitty or a new one. A tap on the tile opens every action and the snapshot timeline (take, revert, delete). Destructive buttons fire on a press and hold, and the tablet buzzes when they do. SSH connects to the VM's name, so give each VM an `~/.ssh/config` alias. - The Assistant tab talks to desktop-assistant: tap the mic to ask, pick the model, and use the canvas's Ask presets and Do ops on a file you choose in a dialog on the PC (add a Translate preset on keystone's Ask presets page to get one here). - The Xbox tab shows your profile (gamertag, gamerpic, gamerscore), what you are playing, your consoles (power state, storage), recent games with achievement progress and hours played, recent achievements and friends. Tap a console's power button to wake it, hold to turn it off; media and volume buttons control what it plays. While a game runs, keystone's presentation mode turns on and the tablet switches to the tab once per session. It needs an app registration of your own (no secret, no API permissions): in the Microsoft Entra admin center, App registrations, New registration, pick "Personal Microsoft accounts only" and the redirect URI platform "Public client/native (mobile & desktop)" with `http://localhost`, then under Authentication allow public client flows. Put its Application (client) ID in `[xbox] client_id` (keystone's deck-it Services page or `~/.config/deck-it/config.toml`) and sign in on the tab with the code it shows. The refresh token is kept in `~/.config/deck-it/xbox-token.json` (mode 0600). Console control needs Remote features on and the Sleep power mode on the console. - The screen stays on while the dashboard is in front. ## License Copyright (C) 2026 Danilo M. GPLv2 only. See [LICENSE](LICENSE) for the full text. Portions derived from tabdeck (MIT) are noted in [LICENSE.tabdeck](LICENSE.tabdeck) and [NOTICE](NOTICE). ## Development Approach This project is developed using AI-assisted tools. Code is generated with the help of AI based on human-provided specifications, design decisions, and iterative feedback. All contributions are reviewed, tested, and curated by the maintainer before being included in the codebase. AI is used as a productivity and exploration tool, while human oversight remains central to all decisions. The goal is to combine the flexibility of AI-assisted development with standard open-source practices such as transparency, review, and accountability.