{"id":17016871,"url":"https://github.com/nnbnh/clipb","last_synced_at":"2025-10-08T10:46:44.953Z","repository":{"id":114416062,"uuid":"334995265","full_name":"NNBnh/clipb","owner":"NNBnh","description":"📋 Clipboard managers warper that SuperB","archived":false,"fork":false,"pushed_at":"2023-01-26T15:19:43.000Z","size":38,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T09:43:19.662Z","etag":null,"topics":["basher","bpkg","cli","clipboard","clipboard-manager","copy-paste","posix","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NNBnh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":["https://www.buymeacoffee.com/nnbnh","https://nhantien.momo.vn/nnb"]}},"created_at":"2021-02-01T15:31:21.000Z","updated_at":"2024-05-25T19:06:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"194e306d-314a-4c8e-b887-d0bc98c409e7","html_url":"https://github.com/NNBnh/clipb","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/NNBnh/clipb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNBnh%2Fclipb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNBnh%2Fclipb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNBnh%2Fclipb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNBnh%2Fclipb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NNBnh","download_url":"https://codeload.github.com/NNBnh/clipb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNBnh%2Fclipb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278931652,"owners_count":26070788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basher","bpkg","cli","clipboard","clipboard-manager","copy-paste","posix","terminal"],"created_at":"2024-10-14T06:34:52.269Z","updated_at":"2025-10-08T10:46:44.948Z","avatar_url":"https://github.com/NNBnh.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/nnbnh","https://nhantien.momo.vn/nnb"],"categories":[],"sub_categories":[],"readme":"\u003e **📢 [Check out `cb`. It's the successor to `clipb`!](https://codeberg.org/NNB/cb)**\n\n\u003ch1 align=\"center\"\u003e\u003ccode\u003eclipb\u003c/code\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003eClipboard managers warper that \u003ci\u003eSuperB\u003c/i\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/160/twitter/281/clipboard_1f4cb.png\"\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://gist.github.com/NNBnh/9ef453aba3efce26046e0d3119dab5a7#development-completed\"\u003e\u003cimg src=\"https://img.shields.io/badge/development-completed-%234EAA25.svg?labelColor=073551\u0026style=for-the-badge\u0026logoColor=FFFFFF\" alt=\"Development completed\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## 💡 About\n\n`clipb` is a *SuperB* clipboard managers warper written in [`portable sh`](https://github.com/dylanaraps/pure-sh-bible) that wraps various system-specific tools for interacting with a system clipboard.\n\n### 📔 Story\n\nWhen switch around [Wayland](https://wayland.freedesktop.org) and [X.org](https://www.x.org), i realise my shell scripts that copy/paste text to and from clipboard are broken. So i strip the [`kakboard-autodetect` function](https://github.com/lePerdu/kakboard/blob/2f13f5cd99591b76ad5cba230815b80138825120/kakboard.kak#L98-L138) out into a standalone CLI clipboard managers warper call [`clipb`](https://github.com/NNBnh/clipb) to detect and interacting with any system clipboard.\n\n\u003e **Note** *Checkout [`clipb.kak`](https://github.com/NNBnh/clipb.kak), an extremely strip down fork of [Kakboard](https://github.com/lePerdu/kakboard).*\n\n### ✨ Features\n\n- Work with `tee` like pipeline (e.g: `ls | clipb | grep -e 'string'`)\n- Supported clipboard managers are:\n  - [`wl-clipboard`](https://github.com/bugaevc/wl-clipboard)\n  - [`xclip`](https://github.com/astrand/xclip)\n  - [`xsel`](http://www.kfish.org/software/xsel)\n  - `pbcopy`, `pbpaste`\n  - `cygwin`'s `/dev/clipboard`\n  - [`termux-api`](https://wiki.termux.com/wiki/Termux:API)\n\n## 🚀 Setup\n\n### 🧾 Dependencies\n\n- [Unix commands](https://en.wikipedia.org/wiki/List_of_Unix_commands) to process\n- [`wl-clipboard`](https://github.com/bugaevc/wl-clipboard) for [Wayland](https://wayland.freedesktop.org)\n- [`xclip`](https://github.com/astrand/xclip) or [`xsel`](http://www.kfish.org/software/xsel) for [X.org](https://www.x.org)\n- [`termux-api`](https://wiki.termux.com/wiki/Termux:API) for [Termux](https://termux.com)\n\n### 📥 Installation\n\n#### 🔧 Manually\n\nOption 1: using `curl`\n\n```sh\ncurl https://raw.githubusercontent.com/NNBnh/clipb/main/bin/clipb \u003e ~/.local/bin/clipb\nchmod +x ~/.local/bin/clipb\n```\n\nOption 2: using `git`\n\n```sh\ngit clone https://github.com/NNBnh/clipb.git ~/.local/share/clipb\nln -s ~/.local/share/clipb/bin/clipb ~/.local/bin/clipb\n```\n\n#### 📦 Package manager\n\nFor [Bpkg](https://github.com/bpkg/bpkg) user:\n\n```sh\nbpkg install NNBnh/clipb\n```\n\nFor [Basher](https://github.com/basherpm/basher) user:\n\n```sh\nbasher install NNBnh/clipb\n```\n\n\u003e **Note** *If you can and want to port Clipb to other package managers, feel free to do so.*\n\n## ⌨️ Usage\n\nCopy `TEXTS` to clipboard:\n\n```sh\nclipb copy TEXTS\n```\n\nPaste from clipboard:\n\n```sh\nclipb paste\n```\n\n## 💌 Credits\n\nSpecial thanks to:\n- [**Kakboard**](https://github.com/lePerdu/kakboard) by [Zach Peltzer](https://github.com/lePerdu)\n- [**Vis-clipboard**](https://github.com/martanne/vis) by [Marc André Tanner](https://github.com/martanne)\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n---\n\n\u003e \u003ch1 align=\"center\"\u003eMade with ❤️ by \u003ca href=\"https://github.com/NNBnh\"\u003e\u003ci\u003eNNB\u003c/i\u003e\u003c/a\u003e\u003c/h1\u003e\n\u003e\n\u003e \u003cp align=\"center\"\u003e\u003ca href=\"https://www.buymeacoffee.com/nnbnh\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy_me_a_coffee%20-%23F7CA88.svg?logo=buy-me-a-coffee\u0026logoColor=333333\u0026style=for-the-badge\" alt=\"Buy Me a Coffee\"\u003e\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnbnh%2Fclipb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnnbnh%2Fclipb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnbnh%2Fclipb/lists"}