From 338e58b97a662a0522f12d85da7672ac0c2d3f19 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 8 May 2023 20:20:29 +0200 Subject: added copyhist! --- bin/guiscripts/copyhist | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/guiscripts/copyhist (limited to 'bin/guiscripts/copyhist') 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 -- cgit v1.2.3