niraj.dev

← Register of issued works

Nº ND·26-001 PythonOmarchyHyprlandT2 MacBooks

touch-bar

The Touch Bar, resurrected - context-aware, on Linux, on hardware Apple left behind.

TOUCH-BAR - Interface specimen
Fig. 1 · Screenshot pending - swap this figure for a real capture (see repo README)

What it is

Intel T2 MacBooks run Linux surprisingly well - except for the strip of glass above the keyboard, which usually sits dark or static. touch-bar is a daemon for Omarchy/Hyprland that turns it back into a first-class control surface: layouts follow the focused app, workspaces get a raw-touch picker with app badges and numbers, and everything stays Fn-safe - brightness, volume and playback are never taken away from you.

The party trick is telemetry. Run Claude Code and the bar becomes a live session read-out - spinner, rate-limit gauges, context display, expandable stats. Play music and an animated MPRIS transport appears, equalizer included. Tap the mic and dictation starts, with recording and transcribing states shown on the strip. Buttons are animated SVGs themed from the active Omarchy palette, touches resolve from raw digitizer input with full-height targets, and rendering is touch-safe - the daemon won't let tiny-dfr reload while a finger is down.

Highlights

  • App-aware layouts for terminals, Claude Code, ChatGPT, editors, Spotify, Discord and Obsidian
  • Raw-touch workspace picker with app badges and numbers, plus a collapsible browser-tab drawer
  • Live Claude Code session read-out - spinner, rate-limit gauges, context display, expandable stats
  • Animated MPRIS media transport with equalizer and mute
  • Always-available dictation with recording/transcribing indicators
  • Animated SVG buttons themed from the active Omarchy palette
  • Fn-safe rendering - classic brightness, volume and playback controls preserved

Install

git clone https://github.com/niraj-envision/touch-bar.git
cd touch-bar
./install.sh

Requires an Intel T2 MacBook running Omarchy (Hyprland) and Python 3.11+.

Specification

LanguagePython 3.11+
PlatformIntel T2 MacBooks · Omarchy / Hyprland
DependenciesNone beyond the system - no pip packages
LicenceSee repository
Repositorygithub.com/niraj-envision/touch-bar