clipshelf 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,203 @@
1
+ Metadata-Version: 2.4
2
+ Name: clipshelf
3
+ Version: 1.0.0
4
+ Summary: Clipboard history for Linux: press Super+V to search, pin and paste anything you've copied.
5
+ Author: sudipnext
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/sudipnext/clipshelf
8
+ Project-URL: Issues, https://github.com/sudipnext/clipshelf/issues
9
+ Project-URL: Releases, https://github.com/sudipnext/clipshelf/releases
10
+ Keywords: clipboard,clipboard-manager,clipboard-history,linux,gnome,gtk,x11,snippets
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: X11 Applications :: GTK
13
+ Classifier: Intended Audience :: End Users/Desktop
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Desktop Environment
17
+ Classifier: Topic :: Utilities
18
+ Requires-Python: >=3.8
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Dynamic: license-file
22
+
23
+ <p align="center">
24
+ <img src="https://raw.githubusercontent.com/sudipnext/clipshelf/main/docs/icon.svg" alt="" width="96">
25
+ </p>
26
+
27
+ <h1 align="center">clipshelf</h1>
28
+
29
+ <p align="center"><strong>A fast, good-looking clipboard history for Linux — press <code>Super+V</code>, pick, paste.</strong></p>
30
+
31
+ <p align="center">
32
+ <a href="https://github.com/sudipnext/clipshelf/releases/latest"><img alt="Latest release" src="https://img.shields.io/github/v/release/sudipnext/clipshelf"></a>
33
+ <a href="LICENSE"><img alt="MIT license" src="https://img.shields.io/github/license/sudipnext/clipshelf"></a>
34
+ <img alt="Linux" src="https://img.shields.io/badge/platform-Linux%20(X11)-blue">
35
+ </p>
36
+
37
+ clipshelf remembers everything you copy (text, links, code, images) and brings it back with a
38
+ Windows-style `Super+V` popup. It is a single Python file with **zero dependencies to install**:
39
+ it only uses Python 3, GTK 3 and Xlib, which already ship with Ubuntu, Fedora, Debian and most
40
+ GNOME desktops.
41
+
42
+ <p align="center">
43
+ <img src="https://raw.githubusercontent.com/sudipnext/clipshelf/main/docs/screenshot.png" alt="clipshelf picker showing pinned snippets and recent copies" width="440">
44
+ </p>
45
+
46
+ ## Features
47
+
48
+ - **Tracks every copy** — text, URLs, code and images, persisted across reboots.
49
+ - **`Super+V` popup** that opens next to your mouse, like Windows 11. Press it again to close.
50
+ - **Pastes for you** — hit `Enter` and the item is pasted straight into the app you were using
51
+ (uses `Ctrl+Shift+V` automatically in terminals).
52
+ - **Search as you type**, plus filter chips for *All / Pinned / Text / Images*.
53
+ - **Pin** favourites so they stay at the top and are never trimmed.
54
+ - **Add your own snippets** with the `+` button (or `Ctrl+N`) — perfect for addresses,
55
+ canned replies, commands you always forget.
56
+ - **Edit** any text entry in place.
57
+ - **Smart previews** — colour swatches for `#hex` / `rgb()` values, monospace for code,
58
+ highlighted links, image thumbnails.
59
+ - **Duplicate-free** — copying something again moves it to the top instead of adding a copy.
60
+ - **Privacy-minded** — skips entries that password managers (e.g. KeePassXC) mark as secret,
61
+ stores history with owner-only permissions, and clearing keeps only what you pinned.
62
+ - **Follows your theme** — dark or light, picked up from GNOME automatically.
63
+
64
+ ## Requirements
65
+
66
+ - Linux with an **X11** session (GNOME, Cinnamon, MATE, XFCE, …)
67
+ - Python 3.8+ with PyGObject and GTK 3 (`python3-gi`, `gir1.2-gtk-3.0`) — preinstalled on
68
+ virtually every GNOME desktop
69
+ - `libX11` and `libXtst` — part of every X11 install
70
+
71
+ Nothing to `pip install`, nothing to compile.
72
+
73
+ ## Install
74
+
75
+ ### One command (any distro)
76
+
77
+ ```bash
78
+ curl -fsSL https://raw.githubusercontent.com/sudipnext/clipshelf/main/install.sh | bash
79
+ ```
80
+
81
+ The installer checks your system, offers to install Python/GTK if they are somehow missing
82
+ (apt, dnf, pacman, zypper, xbps, apk, eopkg), downloads the latest release and sets everything
83
+ up. Run the same command again to upgrade. Options go after `bash -s --`, for example
84
+ `... | bash -s -- --version v1.0.0`; see `install.sh --help`.
85
+
86
+ ### Debian, Ubuntu, Mint, Pop!_OS (.deb)
87
+
88
+ Download `clipshelf_1.0.0_all.deb` from the [latest release](https://github.com/sudipnext/clipshelf/releases/latest), then:
89
+
90
+ ```bash
91
+ sudo apt install ./clipshelf_1.0.0_all.deb
92
+ clipshelf install
93
+ ```
94
+
95
+ The second command (as your normal user) turns on autostart and the `Super+V` shortcut.
96
+
97
+ ### From source
98
+
99
+ ```bash
100
+ git clone https://github.com/sudipnext/clipshelf.git
101
+ cd clipshelf
102
+ python3 clipshelf.py install
103
+ ```
104
+
105
+ ### What `clipshelf install` sets up
106
+
107
+ 1. the program in `~/.local/bin/clipshelf` (one-command and source installs),
108
+ 2. the background watcher, started now and on every login (`~/.config/autostart`),
109
+ 3. a **Clipboard History** launcher in your app grid,
110
+ 4. on GNOME, the **`Super+V`** shortcut. GNOME uses `Super+V` for the notification list
111
+ by default, so that binding is moved aside — notifications remain on **`Super+M`**.
112
+
113
+ On other desktops, bind any shortcut you like to `clipshelf show`.
114
+
115
+ ## Using the picker
116
+
117
+ | Key | Action |
118
+ | --- | --- |
119
+ | *type* | Search |
120
+ | `↑` `↓` / `PgUp` `PgDn` | Move the selection |
121
+ | `Enter` | Paste into the previous app |
122
+ | `Shift+Enter` | Copy only, don't paste |
123
+ | `Alt+1` … `Alt+9` | Quick-paste the *n*-th item |
124
+ | `Ctrl+P` | Pin / unpin |
125
+ | `Ctrl+E` | Edit the selected text entry |
126
+ | `Ctrl+N` | New snippet (saved as pinned) |
127
+ | `Del` (empty search) / `Ctrl+D` | Remove the selected entry |
128
+ | `Tab` / `Shift+Tab` | Switch filter |
129
+ | `Esc` | Clear the search, then close |
130
+
131
+ Clicking an entry pastes it as well. The broom button clears unpinned history (click twice to
132
+ confirm).
133
+
134
+ ## Command line
135
+
136
+ ```text
137
+ clipshelf show open or close the picker (what Super+V runs)
138
+ clipshelf add [TEXT] save a pinned snippet; reads stdin if TEXT is "-" or omitted
139
+ clipshelf list print the history
140
+ clipshelf clear [--all] clear unpinned history (--all removes pinned entries too)
141
+ clipshelf daemon run the background watcher (started automatically)
142
+ clipshelf quit stop the background watcher
143
+ clipshelf install install, autostart and bind Super+V
144
+ clipshelf uninstall undo install (your history is kept)
145
+ clipshelf --version print the version
146
+ ```
147
+
148
+ Example — save the output of a command as a snippet:
149
+
150
+ ```bash
151
+ ip -4 addr show wlan0 | clipshelf add -
152
+ ```
153
+
154
+ ## Configuration
155
+
156
+ Settings live in `~/.config/clipshelf/config.json` (created on first run). Restart the watcher
157
+ with `clipshelf quit && clipshelf show` after editing.
158
+
159
+ | Key | Default | Meaning |
160
+ | --- | --- | --- |
161
+ | `max_items` | `200` | Unpinned entries to keep. Pinned entries are never trimmed. |
162
+ | `paste_on_select` | `true` | Paste into the previous app on `Enter`; `false` = copy only. |
163
+ | `capture_images` | `true` | Record copied images. |
164
+ | `position` | `"pointer"` | `"pointer"` opens by the mouse, `"center"` in the middle of the screen. |
165
+ | `theme` | `"auto"` | `"auto"`, `"dark"` or `"light"`. |
166
+ | `width`, `height` | `440`, `560` | Picker size in pixels. |
167
+ | `shortcut` | `"<Super>v"` | Shortcut bound by `clipshelf install` (GNOME accelerator syntax). |
168
+
169
+ ## How it works
170
+
171
+ - A small background process listens for clipboard ownership changes through GTK and stores
172
+ each new entry in `~/.local/share/clipshelf/history.json` (images as PNG files beside it).
173
+ - `clipshelf show` is a tiny client that talks to that process over a Unix socket in
174
+ `$XDG_RUNTIME_DIR`, so the popup appears instantly.
175
+ - Auto-paste remembers which window was focused before the popup opened and sends the paste
176
+ keystroke with the X Test extension via `ctypes` — no `xdotool` needed.
177
+
178
+ ## Limitations
179
+
180
+ - **Wayland:** compositors only let focused apps read the clipboard, so background capture and
181
+ auto-paste don't work reliably there. Log in with an X11 session ("Ubuntu on Xorg") to use
182
+ clipshelf.
183
+ - Rich formats (HTML, files) are stored as their plain-text form.
184
+
185
+ ## Uninstall
186
+
187
+ ```bash
188
+ curl -fsSL https://raw.githubusercontent.com/sudipnext/clipshelf/main/uninstall.sh | bash
189
+ ```
190
+
191
+ This stops the watcher and removes the shortcut, autostart entry, launcher and program, and
192
+ gives `Super+V` back to GNOME's notification list. Your history is kept in
193
+ `~/.local/share/clipshelf`; add `-s -- --purge` to delete it as well:
194
+
195
+ ```bash
196
+ curl -fsSL https://raw.githubusercontent.com/sudipnext/clipshelf/main/uninstall.sh | bash -s -- --purge
197
+ ```
198
+
199
+ Installed the `.deb`? Run `clipshelf uninstall` first, then `sudo apt remove clipshelf`.
200
+
201
+ ## License
202
+
203
+ [MIT](LICENSE)
@@ -0,0 +1,7 @@
1
+ clipshelf.py,sha256=cthKDisL1arc8ga1nGtMWzGYPoaOw0DHgSCfEAizj8o,63591
2
+ clipshelf-1.0.0.dist-info/licenses/LICENSE,sha256=Kq54ypf8ZDrytoydw6NYxVIkeUUiRgQoCFeUJfcxLxE,1066
3
+ clipshelf-1.0.0.dist-info/METADATA,sha256=s4jNC7W8c49XoylK6smT7mqqHBDmzrgCm87LOxhDcXo,8486
4
+ clipshelf-1.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
5
+ clipshelf-1.0.0.dist-info/entry_points.txt,sha256=DMEMXvQwhY7QOTtZEX9yrOv_2AJaYfHvNgbmRGYzr6I,44
6
+ clipshelf-1.0.0.dist-info/top_level.txt,sha256=SwI4iwBstcViau5irqU1o_VH99iqTL4sQfayNh0wTvA,10
7
+ clipshelf-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ clipshelf = clipshelf:cli
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 sudipnext
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ clipshelf