Add a clipboard module to the desktop group, enabled through the aggregator. Home-manager's services.cliphist runs the text and image watchers as systemd user services bound to the graphical-session target, and a rofi-dmenu picker recalls history on Super+Shift+V. wl-clipboard is on PATH so the shell can pipe to and from the clipboard.
2.3 KiB
2.3 KiB
spec, blocked-by
| spec | blocked-by |
|---|---|
| hyprland-desktop | 0024-rofi-launcher |
What to build
Clipboard history picked entirely by keyboard.
Add a cliphist module (with wl-clipboard) to the desktop group, enabled through the aggregator, storing both text and image history and picked through rofi.
Bind the picker on Super+Shift+V.
Acceptance criteria
- A cliphist module (with wl-clipboard) exists in the desktop group and is enabled by the aggregator.
- Text and image copies are recorded to history.
- The history is picked through rofi and bound on
Super+Shift+V. - neogaia builds green under
nix flake check.
Implementation Notes
- The module is named
clipboard, notcliphist: cliphist is the tool it is built on, but the option a host enables names the capability. - The two clipboard watchers are not hand-written: home-manager's
services.cliphistmodule runs them as a pair of systemd user services, one for text and one for--type image.allowImagesdefaults true, so enabling the service alone records both kinds. - That module installs only
cliphiston PATH and reacheswl-clipboardby store path, sowl-copy/wl-pasteare added tohome.packageshere. The spec asks for the module "with wl-clipboard", and a keyboard-driven session wants the two commands for piping to and from the clipboard. - The services bind to
graphical-session.target, which uwsm starts, matching how mako and hypridle attach to the session on this host. NosystemdTargetsoverride is needed, since the module's default already resolves to that target. - The picker is a small shell script over the same themed rofi the launcher uses (
cliphist list | rofi -dmenu | cliphist decode | wl-copy), so history looks like every other menu. Its keybind lives in this module rather than inhyprland.nix, contributed throughsettings.bind, keeping the command next to its binding and referenced by store path. - No Waybar
window-rewriteicon mapping was added: the watchers are headless daemons and the picker is a rofi layer surface, so nothing new ever appears as a tiled window on the workspace indicator the convention governs. - Image entries render as a
[[ binary data … ]]placeholder line in the rofi list rather than a thumbnail, but selecting one still decodes and re-copies the real image, so both kinds are retrievable.