Pick a file in Files to edit it here.
52 $0.owningApplication?.processID == mypid && $0.isOnScreen && $0.frame.width > 100
53 }) {
54 filter = SCContentFilter(desktopIndependentWindow: win)
55 - cfg.width = Int(win.frame.width * 2)
56 - cfg.height = Int(win.frame.height * 2)
55 } else if let display = content.displays.first {
56 filter = SCContentFilter(display: display, excludingWindows: [])
59 - cfg.width = display.width
60 - cfg.height = display.height
57 } else {
58 writeStatus("no displays/windows to capture")
59 return
60 }
61 + // Native-resolution, tight to the captured content (no black padding on 1Γ displays).
62 + let scale = CGFloat(filter.pointPixelScale)
63 + cfg.width = max(1, Int(filter.contentRect.width * scale))
64 + cfg.height = max(1, Int(filter.contentRect.height * scale))
65 cfg.showsCursor = false
66 let cg = try await SCScreenshotManager.captureImage(contentFilter: filter, configuration: cfg)
67 let rep = NSBitmapImageRep(cgImage: cg)
β Now rebuild, relaunch, and pull a clean shot:
Running 1 shell commandβ¦
β’ Ionizingβ¦ (1m 35s Β· β 6.1k tokens)
βΏ Β Tip: Use /btw to ask a quick side question without interrupting Claude's current work
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ continue-conversation ββ
β―Β
β΅β΅ bypass permissions on (shift+tab to cycle) Β· β for agents Β· esc to interrupt