Add Clipboard History as a launcher mode backed by cliphist
The launcher gains a clipboard mode with the same bar, position and size: the latest five entries show at once and the rest scroll, search filters in recency order, Enter copies, Shift+Delete removes an entry. >clipboard switches in place without closing or animating; glassmxrph clipboard toggles it directly. History stays with the user's cliphist watcher. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
44a5aedbb2
commit
5a10469efe
15 files changed
+392
-24
No files matched your search
@@ -146,3 +146,12 @@ is up. Banners time out into history, pause while hovered, and are cleared when
|
||||
opens. `controlcenter/modules/Notifications.qml` stacks history per app (macOS Notification
|
||||
Center); `NotificationCard` is shared by both. Critical notifications stay until dismissed and
|
||||
may break through DND. `tests/notifications_runtime.py` runs on a private session bus.
|
||||
|
||||
## Clipboard History
|
||||
|
||||
Clipboard History is a launcher mode (`ShellState.launcherMode`), so it shares the launcher's
|
||||
position, size and keyboard handling; `>clipboard` switches in place without closing the window
|
||||
and snaps the height instead of animating it. `ClipboardService` reads the user's existing cliphist
|
||||
history through `helpers/clipboard.py` only when the launcher opens, and keeps the last list cached.
|
||||
The helper never stores entries (the user's `wl-paste --watch cliphist store` does), decodes
|
||||
thumbnails for the newest images into the cache, and detaches `wl-copy` when copying.
|
||||
Reference in new issue
Block a user