From ba76b536335ac470311940b2fc19753303a25b38 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Thu, 7 Nov 2024 17:02:06 +0100 Subject: [PATCH] replace without wlcopy --- dot_config/fuzzel/executable_fuzzel-rbw-wlcopy.sh | 7 +++++++ dot_config/fuzzel/executable_fuzzel-rbw.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 dot_config/fuzzel/executable_fuzzel-rbw-wlcopy.sh diff --git a/dot_config/fuzzel/executable_fuzzel-rbw-wlcopy.sh b/dot_config/fuzzel/executable_fuzzel-rbw-wlcopy.sh new file mode 100644 index 0000000..4fa3607 --- /dev/null +++ b/dot_config/fuzzel/executable_fuzzel-rbw-wlcopy.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Use fuzzel to find a password from password-store and copy it to clipboard. +# inpired by: https://gist.github.com/igemnace/2b8609d280752e8a1b173204c14f6892 + +pass_name=$(rbw list | fuzzel -d) + +[[ $pass_name != "" ]] && rbw get "$pass_name" | wl-copy diff --git a/dot_config/fuzzel/executable_fuzzel-rbw.sh b/dot_config/fuzzel/executable_fuzzel-rbw.sh index 4fa3607..26cfcf8 100644 --- a/dot_config/fuzzel/executable_fuzzel-rbw.sh +++ b/dot_config/fuzzel/executable_fuzzel-rbw.sh @@ -4,4 +4,4 @@ pass_name=$(rbw list | fuzzel -d) -[[ $pass_name != "" ]] && rbw get "$pass_name" | wl-copy +[[ $pass_name != "" ]] && rbw get "$pass_name" --clipboard