test: add secondary clipboard option
This commit is contained in:
parent
8f6f219da4
commit
bc16ef8164
1 changed files with 21 additions and 0 deletions
|
|
@ -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)$
|
||||
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue