From 824ce6b09785d47e5865edf72687edcc0988d277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Richter?= <2268851+x3rAx@users.noreply.github.com> Date: Fri, 23 Oct 2020 10:57:52 +0200 Subject: [PATCH 1/2] Add "The `xdotool` way" Sorry for the late PR, have been very busy with my studies since I posted #138 --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index ab4e1de..eb0590e 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,18 @@ Credit: @kpumuk :!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9 ``` +## The `xdotool` way + +Why type complex commands yourself when `xdotool` can **do the hard work for you**?<sup>*</sup> + +```bash +:!(xdotool type ":e /tmp/exit.vim"; xdotool key KP_Enter; xdotool type "ggiquitall\!"; xdotool key KP_Enter; xdotool key Escape; xdotool type ":w"; xdotool key KP_Enter; xdotool type ":source /tmp/exit.vim"; xdotool key KP_Enter)& +``` + +**¯\\\_(ツ)\_/¯** + +<sup>*</sup> Needs `xdotool` to be installed + ## The first contact way Credit: @caseyjohnellis  From 45cb06b6c825e9d89b80474f5aea5be606b2588b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Richter?= <2268851+x3rAx@users.noreply.github.com> Date: Fri, 23 Oct 2020 11:05:48 +0200 Subject: [PATCH 2/2] Add credit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index eb0590e..233fe85 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ Credit: @kpumuk ## The `xdotool` way +Credit: @x3rAx + Why type complex commands yourself when `xdotool` can **do the hard work for you**?<sup>*</sup> ```bash