Skip to main content

dorso-linux

Posture monitoring for Linux. Uses your webcam to detect slouching and overlays a progressive red glow on your screen as a reminder to sit straight.

Calibration Settings Analytics

Installation

pip install dorso-linux

System dependencies

GTK4 and PyGObject are required:

# Fedora / RHEL
sudo dnf install gtk4-devel python3-gobject

# Ubuntu / Debian
sudo apt install libgtk-4-dev python3-gi gir1.2-gtk-4.0

Usage

dorso

On first launch, sit in your best posture and click Calibrate. Monitoring starts automatically.

When you slouch, a red glow appears on your screen edges. Sit straight and it fades away.

Features

  • Real-time posture detection via webcam (MediaPipe PoseLandmarker)
  • Progressive screen overlay — glow, border, or solid color, with adjustable intensity
  • Click-through — keyboard and mouse work normally through the overlay
  • System tray with posture status and quick controls
  • Analytics dashboard — daily score, 7-day chart, slouch stats
  • Auto-pause on screen lock
  • Dark/light theme support
  • Works on GNOME Wayland, X11, Sway, and Hyprland

Configuration

Settings UI is accessible from the tray icon. Config stored in ~/.config/dorso/config.toml:

warning_mode = "glow"         # glow, border, solid, none
detection_mode = "responsive" # responsive (~10fps), balanced (~4fps), performance (~2fps)
intensity = 1.0               # 0.5 = gentle, 2.0 = harsh
slouch_sensitivity = 0.03     # lower = more sensitive
warning_onset_delay = 0.0     # seconds before warning appears
camera_id = 0                 # camera device index

How it works

  1. OpenCV captures webcam frames at adaptive rates
  2. MediaPipe PoseLandmarker extracts nose position and face width
  3. Slouch detection compares nose Y to your calibrated baseline (5-frame smoothing)
  4. A pure-function posture engine applies hysteresis to avoid flicker
  5. The overlay renders via GNOME Shell extension, Layer Shell, or transparent GTK4 window

Requirements

  • Python 3.11+
  • Linux with GTK4
  • Webcam

Links

License

MIT

Metadata

Release files for dorso-linux 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dorso-linux 0.1.2
File Size Uploaded
dorso_linux-0.1.2.tar.gz 70.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dorso-linux 0.1.2
File Interpreter ABI Platform
dorso_linux-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 152.8 kB

Release files / dorso_linux-0.1.2.tar.gz

Download URL dorso_linux-0.1.2.tar.gz
Size 70.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ec8205b9a762c6e4b7e786674be7050c9390211e9de8a55f90416ace76b30cc2
BLAKE2b-256 checksum
How to use checksums
a41412226b84905c5a4599be32b2611e75e7bffc86d4e9def10a8e2da4a61d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.

Transparency log

Release files / dorso_linux-0.1.2-py3-none-any.whl

Download URL dorso_linux-0.1.2-py3-none-any.whl
Size 82.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40d77815baebaa2434f225d290f74ca3c963bb594b1b1112491021711acb1ab6
BLAKE2b-256 checksum
How to use checksums
35f6d3a13b5e4bbf3bc978dbfe6b78db57b7904f96d65c4dbacb2ad8f41457a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page