Menu

1 / 3

Unlag Neo: Macbook Neo Cursor lag "fix"

Hacker News·4 months ago
#f6dxnkhS
#gist#selector#return#func#else
Reading 0:00
15s threshold

#! /bin/bash set -Efeuxo pipefail

APP= " Unlag Neo " DISPLAY_NAME= " Unlag Neo "

if [ -e " ${APP} .app " ] ; then echo " Error: ${APP} .app exists already " exit 1 fi

mkdir -vp " ${APP} .app/Contents/MacOS " " ${APP} .app/Contents/Resources " PATH= " $PATH :/usr/libexec "

swiftc - -o " ${APP} .app/Contents/MacOS/ ${APP} " << ' SWIFT ' import Foundation import AppKit import CoreGraphics import CoreMedia import ServiceManagement import ApplicationServices @preconcurrency import ScreenCaptureKit struct CaptureError: Error, CustomStringConvertible { let description: String init(_ description: String) { self.description = description } } @MainActor var showedPermissionAlert = false @MainActor var showedAccessibilityAlert = false @MainActor func relaunchUnlag() { let isApp = Bundle.main.bundlePath.hasSuffix(".app") let target = isApp ? Bundle.main.bundlePath : (Bundle.main.executablePath ?? Bundle.main.bundlePath) let p = Process() p.executableURL = URL(fileURLWithPath: "/bin/sh") p.arguments = ["-c", isApp ?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.