From 32964973392ac45f72cdba5ba33869b73c104ffb Mon Sep 17 00:00:00 2001 From: pinoinha Date: Mon, 13 Jun 2022 14:48:19 -0300 Subject: - adicionado cript gopassmenu - adicionada configuração para o teclado akko no modo wireless - adicionada configuração do sxhkd para uso genérico com wms MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/gopassmenu | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 bin/gopassmenu (limited to 'bin') diff --git a/bin/gopassmenu b/bin/gopassmenu new file mode 100755 index 0000000..6a3c461 --- /dev/null +++ b/bin/gopassmenu @@ -0,0 +1,23 @@ +#!/bin/sh + +DMENU_BIN="$HOME/bin/dmenu_wrapper" + +PROMPT="senha:" + +case "$1" in + "--copy"|"-c") + gopass ls --flat | ${DMENU_BIN:-/usr/bin/dmenu} -p $PROMPT | xargs --no-run-if-empty gopass show -c + ;; + "--type"|"-t") + gopass ls --flat | ${DMENU_BIN:-/usr/bin/dmenu} -p $PROMPT | xargs --no-run-if-empty gopass show -o | xdotool type --clearmodifiers --file - + ;; + "--login"|"-l") + gopass ls --flat | ${DMENU_BIN:-/usr/bin/dmenu} -p $PROMPT | xargs --no-run-if-empty -- bash -c 'gopass show -f $0 username' | head -n 1 | xdotool type --clearmodifiers --file - + ;; + *) + echo "USAGE:" + echo "-c or --copy: copy selected entry's password field to the clipboard" + echo "-t or --type: type selected entry's password field using xdotool" + echo "-l or --login: copy selected entry's login field to the clipboard" + ;; +esac -- cgit v1.2.3