diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-08 20:20:29 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-08 20:20:29 +0200 |
commit | 338e58b97a662a0522f12d85da7672ac0c2d3f19 (patch) | |
tree | ca5a183703d1c43af0cd18ee7a6784300962ae82 /bin/guiscripts/copyhist | |
parent | 24106f70cd624269af29889f6264c581a6442227 (diff) |
added copyhist!
Diffstat (limited to 'bin/guiscripts/copyhist')
-rwxr-xr-x | bin/guiscripts/copyhist | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/guiscripts/copyhist b/bin/guiscripts/copyhist new file mode 100755 index 0000000..f6a177a --- /dev/null +++ b/bin/guiscripts/copyhist @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ "$MENUCMD" = "tofi" ] +then + menucmd="tofi --width 30% --height 20% --padding-left 2% --matching-algorithm normal" +elif [ "$MENUCMD" = "dmenu" ] +then + menucmd="dmenu -l 10 -g 1 -x -i" +else + menucmd="fzf" +fi + +cliphist list | + $menucmd | + cliphist decode | + wl-copy -n |