]> Sergey Matveev's repositories - dotfiles.git/commitdiff
tmux menu/popup password manager
authorSergey Matveev <stargrave@stargrave.org>
Tue, 29 Sep 2020 17:26:00 +0000 (20:26 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 29 Sep 2020 17:26:00 +0000 (20:26 +0300)
bin/bin/tmux-menu-pass.sh [new file with mode: 0755]
tmux/.tmux.conf

diff --git a/bin/bin/tmux-menu-pass.sh b/bin/bin/tmux-menu-pass.sh
new file mode 100755 (executable)
index 0000000..937f08f
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+while :; do
+    echo -n "? "
+    read pass
+    passman has "$pass" || continue
+    passman "$pass" >/dev/null &
+    sleep 1
+    exit
+done
index f414919c26c9219d642afb4b744449c941f3688c..f522cc78a8d950e6a32b55e80d3d1eaf94c53b60 100644 (file)
@@ -34,9 +34,10 @@ bind-key b set-option status
 unbind-key L
 
 bind-key t display-menu \
-    dict d "popup -KE -R ~/bin/dict.sh" \
-    music m "popup -KE -R ~/bin/attach-music.sh" \
-    top t "popup -KE -R \"top -s 1\""
+    music t "popup -KE -R ~/bin/tmux-menu-music.sh" \
+    pass p "popup -KE -R ~/bin/tmux-menu-pass.sh" \
+    dict d "popup -KE -R ~/bin/tmux-menu-dict.sh" \
+    top o "popup -KE -R \"top -s 1\""
 
 bind-key u {
     capture-pane -J