Skip to content

Commit

Permalink
🔧 start alttab from terminal for getting rid of annoying sharing indi…
Browse files Browse the repository at this point in the history
  • Loading branch information
joelazar committed May 25, 2024
1 parent c8144a6 commit df1808b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions private_Library/LaunchAgents/local.alttab.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.alttab</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/usr/bin/osascript $HOME/.local/bin/alttab.scpt</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
5 changes: 5 additions & 0 deletions private_dot_local/bin/alttab.scpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tell application "Terminal"
do script "screen -dmS AltTab /Applications/AltTab.app/Contents/MacOS/AltTab && exit"
delay 1.5
if it is running then quit
end tell

0 comments on commit df1808b

Please sign in to comment.