Skip to content

Instantly share code, notes, and snippets.

@steventheworker
steventheworker / DockAltTab-tccutil.sh
Created April 27, 2023 19:35
DockAltTab remove all permissions w/ redundancy
tccutil reset All com.steventheworker.DockAltTab
tccutil reset ScreenCapture com.steventheworker.DockAltTab
tccutil reset AppleEvents com.steventheworker.DockAltTab
tccutil reset Accessibility com.steventheworker.DockAltTab
tccutil reset MediaLibrary com.steventheworker.DockAltTab
tccutil reset ListenEvent com.steventheworker.DockAltTab
# other... ?
# tccutil reset ListenEvent com.steventheworker.DockAltTab
# tccutil reset DeveloperTool com.steventheworker.DockAltTab
@steventheworker
steventheworker / cmd-shift-e-rule.json
Last active October 22, 2022 06:17
add to ~/.config/karabiner/assets/complex_modifications
{
"title": "Rules for Karabiner-Elements | Tested Version: 11.6.0",
"rules": [
{
"description": "cmd-shift-e spotlight",
"manipulators": [
{
"from": {
"key_code": "e",
"modifiers": {
@steventheworker
steventheworker / reclaimFocus.swift
Last active April 21, 2022 19:22
reclaimFocus (by u/TheHiddenHeathen) v1.0 as seen on: r/MacOS/comments/u7egn7/window_management_lack_of_consistency_drives_me
// compile it with swiftc in terminal and then run output binary as shell script within BetterTouchTool.
import Cocoa
func reclaimFocus() {
let options = CGWindowListOption(arrayLiteral: CGWindowListOption.excludeDesktopElements, CGWindowListOption.optionOnScreenOnly)
let windowListInfo = CGWindowListCopyWindowInfo(options, CGWindowID(0))
guard
let infoList = windowListInfo as NSArray? as? [[String: AnyObject]] else {
return
}