Add gopass-ydotool

This commit is contained in:
Andrew Kvalheim 2022-09-01 21:46:05 -07:00
parent a7f281f57e
commit 0a419379b6
6 changed files with 21 additions and 0 deletions

View file

@ -77,6 +77,7 @@ in
file
gimp-with-plugins
gopass
gopass-ydotool
htop
httpie
imagemagickBig

View file

@ -83,6 +83,7 @@
e = "exa --all --group-directories-first --long --header --time-style long-iso";
mv = "mv --no-clobber --verbose";
p = "gopass";
pt = "gopass-ydotool";
rm = "rm --one-file-system --verbose";
watch = "watch --color";
};

View file

@ -36,6 +36,7 @@ overrideUntilVersion {
add-words = { };
gh = { };
gopass-await = { inherit (pkgs.gnome) zenity; };
gopass-ydotool = { };
iosevka-custom = { };
mozjpeg-simple = { };
off = { };

View file

@ -35,6 +35,7 @@ zstyle ':completion:*:functions' ignored-patterns '(_*|pre(cmd|exec))'
zstyle ':completion:*:manuals' separate-sections 'true'
zstyle ':completion:*:matches' group 'yes'
zstyle ':completion:*:warnings' format '%B%F{8}# No matches%f'
compdef '_values passwords $(gopass ls --flat)' gopass-ydotool
# Abbreviations
source @zsh-abbr@

View file

@ -0,0 +1,13 @@
{ resholve
# Dependencies
, bash
, gopass
, ydotool
}:
resholve.writeScriptBin "gopass-ydotool" {
interpreter = "${bash}/bin/bash";
inputs = [ gopass ydotool ];
execer = [ "cannot:${gopass}/bin/gopass" ];
} (builtins.readFile ./resources/gopass-ydotool)

View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -Eeuo pipefail
ydotool type --file <( gopass show --password "$1" )