From d53ce5574b0bfd6f78394f9469a043c04866ecdc Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sun, 31 Jul 2022 12:39:36 +0200 Subject: Created dmenu wrapper and made all (hopefully) scripts compatible with vanilla dmenu. --- quicktext.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'quicktext.sh') diff --git a/quicktext.sh b/quicktext.sh index a399fd3..d71e659 100755 --- a/quicktext.sh +++ b/quicktext.sh @@ -2,4 +2,6 @@ # Selects a string from a file of frequently used strings -dmenu -i -p "Choose a string: " <"$HOME/.config/quicktext" | xsel -bi +file="$HOME/.config/quicktext" + +dmenu -l "$(wc -l "$file")" -p "🗒️" <"$file" | xsel -bi -- cgit v1.2.1