Commit Graph
12 Commits
  • Default SIGN_ID to the mxd certificate
    Keep the signing identity in the Makefile rather than in shell config.
    A Mac without the certificate fails at signing, before the running mxd
    is stopped. Override with SIGN_ID=- for ad-hoc signing.
    
    Assisted-by: Claude Sonnet 5.5
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • Package mxd as an app bundle
    A loose binary can't have a name or icon, so permission lists, Login
    Items and Activity Monitor showed it bare. mxd.app fixes that, and the
    source stays one Swift file.
    
    mxd.icns is committed so Macs without Icon Composer can build. It's
    rendered from mxd.icon by ictool, because compiling the .icon into an
    Assets.car needs actool from full Xcode. The icon is therefore static,
    with no dark or tinted variants.
    
    make install replaces the manual steps. SIGN_ID selects the signing
    identity: ad-hoc by default, which ties grants to the build's hash.
    
    Assisted-by: Claude Sonnet 5.5
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • Add app icon
    Created in Icon Composer.
    
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • Remove all code comments
    The code should explain itself. Decisions live in commit messages.
    
    Build: swiftc -O -swift-version 5 mxd.swift -o mxd
           codesign -s - mxd
    Run under launchd, so macOS charges the permissions to mxd rather than
    to a terminal. Each rebuild needs a re-grant and a restart.
    
    Comment removal only: code tokens are unchanged.
    
    Assisted-by: Claude Sonnet 5.5
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • Reverse the Spaces swipe direction
    Pulling left now brings in the desktop on the right, and pulling right
    the one on the left, like dragging the desktop.
    
    Assisted-by: Claude Sonnet 5.5
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • Detect a dead scroll tap from a background watchdog
    The revocation guard never fired: scroll events stalled about 10 s and
    mxd kept running without logging. Either AXIsProcessTrusted stayed true
    in the running process or the main thread was stuck.
    
    Check every 500 ms from a background queue, so a stuck main thread
    can't stop the check. Also watch the outcome instead of trusting the
    permission API alone: the HID scroll counter advancing without events
    reaching the tap for 2 s, the tap staying disabled for 2 s, and two
    timeouts within 30 s. Log which signal fired.
    
    A hard _exit deadline is set first, in case removing the tap blocks.
    Revocation exits 0 so launchd stays down. A stall exits 1, so a false
    positive costs only a restart, and a real revocation leaves mxd idle
    because tapCreate fails.
    
    Assisted-by: Claude Sonnet 5.5
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • Fire App Exposé on slide down while held
    Press the thumb button and slide down, and App Exposé fires as soon as
    the slide crosses the threshold, once per hold. The release then does
    nothing. Left, right, up and tap still act on release.
    
    Assisted-by: Claude Sonnet 5.5
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • Add app ignore list and ~/.config/mxd
    Read glideIntensity and ignoredApps from a JSON file at ~/.config/mxd,
    written with defaults if missing. An existing path is never modified,
    and a bad file falls back to defaults. Read once at startup.
    
    While an ignored app is the scroll target, its notches pass through
    untouched. While one is frontmost, the buttons are undiverted, so it
    gets real mouse buttons and a thumb hold doesn't freeze the pointer.
    
    Default to NVIDIA GeForce Now, under both its long name and the name
    it is believed to report on macOS. That name is unconfirmed, as the
    app isn't installed where this was written.
    
    Assisted-by: Claude Sonnet 5.5
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • Add glideIntensity setting
    Replace scrollDuration with a 0...1 value. 0 jumps with no glide, 0.5
    is Mos's default and today's behaviour, 1 is Mos's longest glide.
    
    Scale the dead zone with the transition. A frame is only posted above
    the dead zone, so long glides would otherwise lose most of their
    distance. One notch now travels 79-91 px at every intensity.
    
    Assisted-by: Claude Sonnet 5.5
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • Exit when Accessibility is revoked
    A tap that outlives its Accessibility grant can stall scroll events,
    and every later click and key queues behind them. When the grant goes,
    remove the tap, restore the buttons and exit.
    
    Assisted-by: Claude
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • Fix scroll direction and DPI, reduce scroll CPU
    Stop reversing the wheel and stop raising DPI to 1600, since both
    changed behaviour the user relied on.
    
    Send glide frames straight to the target app from an annotated-session
    tap, as Mos does, so frames no longer pass back through mxd's own tap.
    Reuse one event per notch, reduce the scroll filter to two values, and
    stop the timer once nothing more can be posted.
    
    Remove the background activity assertion, which was preventing idle
    system sleep.
    
    Assisted-by: Claude Opus 5.5
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>
  • initial commit
    Signed-off-by: Yigit BALABAN <balaban@yigid.dev>