Clipboard managers warper that SuperB
clipb
is a SuperB clipboard managers warper written in portable sh
that wraps various system-specific tools for interacting with a system clipboard.
When switch around Wayland and X.org, i realise my shell scripts that copy/paste text to and from clipboard are broken. So i strip the kakboard-autodetect
function out into a standalone CLI clipboard managers warper call clipb
to detect and interacting with any system clipboard.
Note Checkout
clipb.kak
, an extremely strip down fork of Kakboard.
- Work with
tee
like pipeline (e.g:ls | clipb | grep -e 'string'
) - Supported clipboard managers are:
wl-clipboard
xclip
xsel
pbcopy
,pbpaste
cygwin
's/dev/clipboard
termux-api
- Unix commands to process
wl-clipboard
for Waylandxclip
orxsel
for X.orgtermux-api
for Termux
Option 1: using curl
curl https://raw.githubusercontent.com/NNBnh/clipb/main/bin/clipb > ~/.local/bin/clipb
chmod +x ~/.local/bin/clipb
Option 2: using git
git clone https://github.com/NNBnh/clipb.git ~/.local/share/clipb
ln -s ~/.local/share/clipb/bin/clipb ~/.local/bin/clipb
For Bpkg user:
bpkg install NNBnh/clipb
For Basher user:
basher install NNBnh/clipb
Note If you can and want to port Clipb to other package managers, feel free to do so.
Copy TEXTS
to clipboard:
clipb copy TEXTS
Paste from clipboard:
clipb paste
Special thanks to:
Made with β€οΈ by NNB