From 1434f817f710033746ce8c47730dada56333a8d7 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 30 Sep 2016 17:26:37 -0700 Subject: [PATCH] [CopyQ] Add copyq_rofi script --- dotfiles/lib/bin/copyq_all.js | 9 +++++++++ dotfiles/lib/bin/copyq_all.sh | 4 ++++ dotfiles/lib/bin/copyq_rofi.sh | 8 ++++++++ 3 files changed, 21 insertions(+) create mode 100644 dotfiles/lib/bin/copyq_all.js create mode 100755 dotfiles/lib/bin/copyq_all.sh create mode 100755 dotfiles/lib/bin/copyq_rofi.sh diff --git a/dotfiles/lib/bin/copyq_all.js b/dotfiles/lib/bin/copyq_all.js new file mode 100644 index 00000000..aed704bb --- /dev/null +++ b/dotfiles/lib/bin/copyq_all.js @@ -0,0 +1,9 @@ +String.prototype.replaceAll = function(search, replacement) { + var target = this; + return target.split(search).join(replacement); +}; + +for (var i=0; i/dev/null; then + copyq select "$SELECTED_INDEX" + copyq paste +fi