Merge pull request #65 from jimmy-liao-gogoro/touch-bar-way

Add MacBook Pro Touch Bar way
This commit is contained in:
Luke Stephens (hakluke) 2020-01-10 00:07:47 +10:00 committed by GitHub
commit 6f3f13ae78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,10 +152,16 @@ Credit: @dbalatero
let script="activate application \"Activity Monitor\"\ntell application \"System Events\"\n\tkeystroke \"f\" using {option down, command down}\n\tkeystroke \"vim\"\n\n\ttell process \"Activity Monitor\"\n\t\ttell outline 1 of scroll area 1 of window 1\n\t\t\tselect row 1\n\n\t\t\tkeystroke \"q\" using {option down, command down}\n\t\t\tkey code 36\n\t\tend tell\n\tend tell\nend tell\n" | call writefile(split(script, "\n", 1), '/tmp/exit-vim.scpt', 'b') | !osascript /tmp/exit-vim.scpt let script="activate application \"Activity Monitor\"\ntell application \"System Events\"\n\tkeystroke \"f\" using {option down, command down}\n\tkeystroke \"vim\"\n\n\ttell process \"Activity Monitor\"\n\t\ttell outline 1 of scroll area 1 of window 1\n\t\t\tselect row 1\n\n\t\t\tkeystroke \"q\" using {option down, command down}\n\t\t\tkey code 36\n\t\tend tell\n\tend tell\nend tell\n" | call writefile(split(script, "\n", 1), '/tmp/exit-vim.scpt', 'b') | !osascript /tmp/exit-vim.scpt
``` ```
## The MacBook Pro Touch Bar way
Credit: @IA_Baby46
Touch `quit vim` text in your touch bar
## The Mac Terminal way ## The Mac Terminal way
Press <kbd></kbd>+<kbd>q</kbd> > Click `Terminate` Press <kbd></kbd>+<kbd>q</kbd> > Click `Terminate`
## The Passive Way ## The Passive Way
_**Walk away.**_ _**Walk away.**_