test: add secondary clipboard option

This commit is contained in:
Peritia 2026-03-03 17:46:07 +01:00
parent 8f6f219da4
commit bc16ef8164

View file

@ -9,9 +9,21 @@
home.packages = with pkgs; [
wl-clipboard
cliphist
fzf
wofi
];
home.file.".local/bin/TermClipboardManager" = {
executable = true;
text = ''
#!/usr/bin/env bash
cliphist list | \
fzf --preview 'cliphist decode {1} | chafa -' \
--preview-window=right:60%:wrap | \
cliphist decode | wl-copy
'';
};
services.cliphist = {
enable = true;
@ -35,6 +47,15 @@
#exec-once = wl-paste --type text --watch cliphist store
#exec-once = wl-paste --type image --watch cliphist store
bind = $mainMod, V, exec, cliphist list | wofi --dmenu --prompt "Clipboard" | cliphist decode | wl-copy
bind = $mainMod SHIFT, V, exec, alacritty --class TermClipboardManager -e TermClipboardManager
windowrule = float, class:^(TermClipboardManager)$
windowrule = center, class:^(TermClipboardManager)$
windowrule = size 1000 600, class:^(TermClipboardManager)$
windowrule = animation popin, class:^(TermClipboardManager)$
windowrule = rounding 12, class:^(TermClipboardManager)$
windowrule = noborder, class:^(TermClipboardManager)$
'';
};
}