password selector puts username in primary selection now
modified: .local/bin/tools/passmenu2
This commit is contained in:
parent
6907760e58
commit
937fdd50a7
@ -44,13 +44,14 @@ while [ "$DONE" -eq 0 ] ; do
|
|||||||
# not a directory so it must be a real password entry
|
# not a directory so it must be a real password entry
|
||||||
|
|
||||||
if [[ $typeit -eq 0 ]]; then
|
if [[ $typeit -eq 0 ]]; then
|
||||||
pass show -c "$SELECTION" > $HOME/.cache/passstring
|
pass show -c "$SELECTION" > $HOME/.cache/passstring
|
||||||
sed -e "s/^/\"/" -e "s/$/\"/" $HOME/.cache/passstring | xargs -r notify-send "Password" -t 4000
|
pass show "$SELECTION" | awk 'NR == 2 {print $NF}' | xclip -i -selection primary
|
||||||
sleep 45
|
sed -e "s/^/\"/" -e "s/$/\"/" $HOME/.cache/passstring | xargs -r notify-send "Password" -t 4000
|
||||||
if [ -f $HOME/.cache/passstring ]; then
|
sleep 45
|
||||||
notify-send "Password" "password cleared from clipboard" -t 4000
|
if [ -f $HOME/.cache/passstring ]; then
|
||||||
rm $HOME/.cache/passstring
|
notify-send "Password" "password cleared from clipboard" -t 4000
|
||||||
fi
|
rm $HOME/.cache/passstring
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
xdotool - <<<"type --clearmodifiers -- $(pass show "$SELECTION" | head -n 1)"
|
xdotool - <<<"type --clearmodifiers -- $(pass show "$SELECTION" | head -n 1)"
|
||||||
|
Loading…
Reference in New Issue
Block a user