From ba83e4f7b2a80e5c402bff93e2f45af3731b67e7 Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 26 Jan 2021 21:54:20 -0500 Subject: [PATCH] Give pass it's own set of prompts --- README.md | 10 +++------- prompt | 24 ++++++++++++++++++++---- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 9df2364..358ceeb 100644 --- a/README.md +++ b/README.md @@ -92,22 +92,18 @@ exists. #### TODO - Finish vpn and networking stuff after ini script is finished, then make sure -- maybe add an mru ranking alrogithm in the future - printf in case goes to stderror which is shown in bar - Add ddg search prompt - setup pass - variables to the script to make assumed paths easier to change -- show script for man pages, pkg info, and other things -- command to clipboard - emoji select to clipboard -- system of additional clipboards using /tmp files - use attach-session -t . -c /dir for selecting multiplexer directory - ddg fill options should be taken from bookmarks or history - Make password prompts green - Figure out range selecting for parsing passwords -- Figure out using dmenu instead of gnome key prompt +- Figure out using dmenu instead of gnome key prompt (pinentry) - Consider entr in dwm-start for watching files -- make dmenu load time more like fzf? - change xdg text/plain opener to use vim and st if not in terminal +- unicode character insertion - finish editing text-opener change prompt icon to nerd icon +- select window with wmctrl diff --git a/prompt b/prompt index 47a87fc..b27c15a 100755 --- a/prompt +++ b/prompt @@ -87,6 +87,21 @@ action() { esac } +login() { + choice=$(printf "Auto + Username + Password + Alternate + Show + Edit" | tr -d '\t' | dmenu -i -p "login") + + case $choice in + Username) username;; + Password) password;; + Alternate) other_password;; + Show) show_password;; + esac +} do_search() { type=$(printf "Manual DDG @@ -291,6 +306,10 @@ other_password() { sed -n -e "" } +show_password() { + ls +} + edit_password() { account=$(find ~/.password-store/[!\.]* -type f | sed -e "s:$HOME/.password-store/::" -e "s:\.gpg::" | @@ -313,10 +332,7 @@ case $1 in action) action;; cmd) cmd;; cmd_clip) cmd_clip;; - username) username;; - password) password;; - other_password) other_password;; - edit_password) edit_password;; + login) login;; search) do_search;; open) opener;; choose) chooser;;