From 76b94ef4b1c25fb5511e33e4d6632aa8c88a0e4a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 18 Apr 2023 22:32:01 +0200 Subject: made matching algorithm prefix on default --- bin/guiscripts/mpass | 2 +- bin/menuscripts/mvid | 2 +- config/hyprland/tofi/themes/nord | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/guiscripts/mpass b/bin/guiscripts/mpass index 386abdf..43f6f09 100755 --- a/bin/guiscripts/mpass +++ b/bin/guiscripts/mpass @@ -3,7 +3,7 @@ store="$HOME/.password-store" lscmd="ls --group-directories-first" if [ "$MENUCMD" = "tofi" ] then - menucmd="tofi --matching-algorithm prefix --prompt pass:" + menucmd="tofi --prompt pass:" elif [ "$MENUCMD" = "dmenu" ] then menucmd="dmenu -l 4 -g 2 -x -i -p pass:" diff --git a/bin/menuscripts/mvid b/bin/menuscripts/mvid index a31a221..8d14c4b 100755 --- a/bin/menuscripts/mvid +++ b/bin/menuscripts/mvid @@ -8,7 +8,7 @@ cat /tmp/dmvids if [ "$MENUCMD" = "tofi" ] then - menucmd="tofi --width 30% --height 30%" + menucmd="tofi --width 30% --height 30% --matching-algorithm normal" elif [ "$MENUCMD" = "dmenu" ] then menucmd="dmenu -l 10 -g 1 -x -i" diff --git a/config/hyprland/tofi/themes/nord b/config/hyprland/tofi/themes/nord index dae003b..cf78b5c 100644 --- a/config/hyprland/tofi/themes/nord +++ b/config/hyprland/tofi/themes/nord @@ -29,6 +29,7 @@ padding-left = 0 # padding-left = 7% padding-right = 0 +matching-algorithm = prefix require-match = false auto-accept-single = true hidden-character = "" -- cgit v1.2.3 From 3c5941df55d843dacf6378317747ed59fe249a5d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 18 Apr 2023 22:32:25 +0200 Subject: added mpass to menuscripts --- bin/guiscripts/mpass | 19 ------------------- bin/menuscripts/mpass | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) delete mode 100755 bin/guiscripts/mpass create mode 100755 bin/menuscripts/mpass diff --git a/bin/guiscripts/mpass b/bin/guiscripts/mpass deleted file mode 100755 index 43f6f09..0000000 --- a/bin/guiscripts/mpass +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env sh -store="$HOME/.password-store" -lscmd="ls --group-directories-first" -if [ "$MENUCMD" = "tofi" ] -then - menucmd="tofi --prompt pass:" -elif [ "$MENUCMD" = "dmenu" ] -then - menucmd="dmenu -l 4 -g 2 -x -i -p pass:" -else - menucmd="fzf" -fi -while [ -d "${store}/${file}" ] -do - choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $menucmd)" - [ "$choice" ] || break - file="${file}/${choice}" -done -pass show -c "${file}" diff --git a/bin/menuscripts/mpass b/bin/menuscripts/mpass new file mode 100755 index 0000000..ebe3956 --- /dev/null +++ b/bin/menuscripts/mpass @@ -0,0 +1,19 @@ +#!/usr/bin/env sh +store="$HOME/.password-store" +lscmd="ls --group-directories-first" +if [ "$MENUCMD" = "tofi" ] +then + menucmd="tofi --prompt pass:" +elif [ "$MENUCMD" = "dmenu" ] +then + menucmd="dmenu -l 4 -g 2 -x -i -p pass:" +else + menucmd="fzf --prompt pass:" +fi +while [ -d "${store}/${file}" ] +do + choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $menucmd)" + [ "$choice" ] || break + file="${file}/${choice}" +done +pass show -c "${file}" -- cgit v1.2.3