dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 43dce123baaa7e43a30891a76300b9d10b244cb6
parent d0081096b8d756034f3bbe2025b9035da83e9fc6
Author: Hayden Hamilton <hayden@haydenvh.com>
Date:   Mon, 23 Dec 2019 17:36:16 +0000

Fixed dpass

Diffstat:
M.scripts/bin/dmenu/daskpass | 2+-
M.scripts/bin/dmenu/dpass | 6+-----
2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/.scripts/bin/dmenu/daskpass b/.scripts/bin/dmenu/daskpass @@ -8,4 +8,4 @@ # Copyright (c) 2019 Hayden Hamilton. LICENSE:GPLv2 ../../.licenses/gplv2.license # . $HOME/.dmenurc -$dmenu -nf "#090711" -p "$1" <&- && echo +$dmenu -P -p "$1" <&- && echo diff --git a/.scripts/bin/dmenu/dpass b/.scripts/bin/dmenu/dpass @@ -9,12 +9,8 @@ dmenu="dmenu" . $HOME/.dmenurc -lower() { - printf '%s\n' "${1,,}" -} - [ ! -f $PASS ] && touch $PASS -pass=$(cat $PASS | awk '// {print $1}' | $dmenu -l 50 -i -p "Select a password/generate/edit:" | tr '[:upper:]' '[:lower:]') +pass=$(printf "GENERATE\nEDIT\n$(cat $PASS | awk '// {print $1}')" | $dmenu -l 50 -i -p "Select a password/generate/edit:" | tr '[:upper:]' '[:lower:]') getpass=$(cat $PASS | awk "/$pass/ "'{print $0}') if [ "$pass" == "" ] then