From 431c7dcdd84df1bb2b6f218bd6ae273d15e307ff Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sun, 1 Jan 2023 14:19:37 -0500 Subject: [PATCH] clipedit.sh: added script --- src/.local/bin/deskutils/clipedit.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 src/.local/bin/deskutils/clipedit.sh diff --git a/src/.local/bin/deskutils/clipedit.sh b/src/.local/bin/deskutils/clipedit.sh new file mode 100755 index 0000000..c86d3e3 --- /dev/null +++ b/src/.local/bin/deskutils/clipedit.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Edit clipboard contents with $EDITOR + +TMPFILE="$(mktemp)" + +xsel -b > "$TMPFILE" +nvim "$TMPFILE" +cat "$TMPFILE" | xsel -ib