From b5c4653bcd589f5a04cedf356a218a748bd06251 Mon Sep 17 00:00:00 2001 From: Jimmy Liao Date: Wed, 8 Jan 2020 17:10:33 +0800 Subject: [PATCH] Add touch bar way --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 6610bd6..a414c0f 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,12 @@ 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 ``` +## The MacBook Pro Touch Bar way + +Credit: @IA_Baby46 + +Touch `quit vim` text in your touch bar + ## The Passive Way _**Walk away.**_