diff options
-rwxr-xr-x | bin/guiscripts/dmpass | 11 | ||||
-rwxr-xr-x | bin/guiscripts/mpass | 19 | ||||
-rw-r--r-- | config/hyprland/hypr/binds.conf | 5 |
3 files changed, 21 insertions, 14 deletions
diff --git a/bin/guiscripts/dmpass b/bin/guiscripts/dmpass deleted file mode 100755 index bb7bee2..0000000 --- a/bin/guiscripts/dmpass +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env sh -store="$HOME/.password-store" -lscmd="ls --group-directories-first" -dmenucmd="dmenu -l 4 -g 2" -while [ -d "${store}/${file}" ] -do - choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $dmenucmd)" - [ "$choice" ] || break - file="${file}/${choice}" -done -pass show -c "${file}" diff --git a/bin/guiscripts/mpass b/bin/guiscripts/mpass new file mode 100755 index 0000000..386abdf --- /dev/null +++ b/bin/guiscripts/mpass @@ -0,0 +1,19 @@ +#!/usr/bin/env sh +store="$HOME/.password-store" +lscmd="ls --group-directories-first" +if [ "$MENUCMD" = "tofi" ] +then + menucmd="tofi --matching-algorithm prefix --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/config/hyprland/hypr/binds.conf b/config/hyprland/hypr/binds.conf index 01abc75..2e597a2 100644 --- a/config/hyprland/hypr/binds.conf +++ b/config/hyprland/hypr/binds.conf @@ -81,7 +81,7 @@ bind =, G, exec, mpassgen bind =, H, exec, dmhelp bind =, I, exec, mapimg bind =, L, exec, dmlang -bind =, M, exec, dmpass +bind =, M, exec, mpass bind =, P, exec, dmpdf bind =, O, exec, mpower bind =, U, exec, mcurs @@ -95,13 +95,12 @@ bind = $mainMod, G, exec, mpassgen bind = $mainMod, H, exec, dmhelp bind = $mainMod, I, exec, mapimg bind = $mainMod, L, exec, dmlang -bind = $mainMod, M, exec, dmpass +bind = $mainMod, M, exec, mpass bind = $mainMod, P, exec, dmpdf bind = $mainMod, O, exec, mpower bind = $mainMod, U, exec, mcurs bind = $mainMod, V, exec, mvid source = ./reset-submap.conf -source = ./reset-submap.conf submap = reset bind =, XF86AudioLowerVolume, exec, pamixer -d 5 |