Compare commits
1 Commits
210a260735
...
cf44c4df27
| Author | SHA1 | Date | |
|---|---|---|---|
| cf44c4df27 |
@@ -19,11 +19,8 @@ Bind the picker on `Super+Shift+V`.
|
|||||||
|
|
||||||
## Implementation Notes
|
## Implementation Notes
|
||||||
|
|
||||||
- The module is named `clipboard`, not `cliphist`: 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.cliphist` module runs them as a pair of systemd user services, one for text and one for `--type image`, and installs both `cliphist` and `wl-clipboard`.
|
||||||
- The two clipboard watchers are not hand-written: home-manager's `services.cliphist` module runs them as a pair of systemd user services, one for text and one for `--type image`.
|
|
||||||
`allowImages` defaults true, so enabling the service alone records both kinds.
|
`allowImages` defaults true, so enabling the service alone records both kinds.
|
||||||
- That module installs only `cliphist` on PATH and reaches `wl-clipboard` by store path, so `wl-copy`/`wl-paste` are added to `home.packages` here.
|
|
||||||
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.
|
- The services bind to `graphical-session.target`, which uwsm starts, matching how mako and hypridle attach to the session on this host.
|
||||||
No `systemdTargets` override is needed, since the module's default already resolves to that target.
|
No `systemdTargets` override 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.
|
- 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.
|
||||||
|
|||||||
@@ -29,12 +29,6 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home-manager.users.${user} = {
|
home-manager.users.${user} = {
|
||||||
# wl-copy and wl-paste on PATH, so the shell can pipe into and out of the
|
|
||||||
# clipboard.
|
|
||||||
# The watchers and picker above reach wl-clipboard by store path, so this
|
|
||||||
# is for interactive use alone.
|
|
||||||
home.packages = [ pkgs.wl-clipboard ];
|
|
||||||
|
|
||||||
# Two watchers record text and images to history, bound to the graphical
|
# Two watchers record text and images to history, bound to the graphical
|
||||||
# session so uwsm starts and stops them with it.
|
# session so uwsm starts and stops them with it.
|
||||||
services.cliphist.enable = true;
|
services.cliphist.enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user