Minimal life tracker designed for Magic: The Gathering
Find a file
2026-04-29 18:10:24 -07:00
src Initial commit 2026-04-29 18:10:24 -07:00
.gitignore Initial commit 2026-04-29 18:10:24 -07:00
Cargo.lock Initial commit 2026-04-29 18:10:24 -07:00
Cargo.toml Initial commit 2026-04-29 18:10:24 -07:00
LICENSE Initial commit 2026-04-29 18:10:24 -07:00
README Initial commit 2026-04-29 18:10:24 -07:00

Serra

A Magic: The Gathering life counter for minimal Linux touchscreen devices.
Supports 2-6 players. Built on raw kernel APIs (DRM/KMS + evdev) with no
desktop environment required.

Features
  - 2-6 players with automatic panel layout
  - Starting life of 20 or 40
  - Status bar showing system time and battery percentage

Requirements
  - Linux with DRM/KMS support
  - A touchscreen input device (/dev/input/event*)
  - Rust toolchain (for building)
  - User in the "video" and "input" groups, or an active logind session

Running
    Serra auto-detects the first DRM card and the first touchscreen input device.
You can override these with environment variables:

  SERRA_DRM        DRM device path         (default: /dev/dri/card0)
  SERRA_INPUT      Input event device path (default: auto-detected)
  SERRA_FONT_BOLD  Path to bold TTF font   (default: system font)
  SERRA_FONT       Path to regular TTF     (default: system font)

Serra looks for Liberation Sans and DejaVu Sans in common system font
directories. Set SERRA_FONT / SERRA_FONT_BOLD to use a specific font file instead.

No GTK, X11, Wayland, libinput, or udev required at runtime.