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