From 4f63bb663b5e65bd6e61e7c07fb9869aae659f46 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 30 Sep 2020 21:10:20 +0300 Subject: [PATCH] Fix problems with background menu passman --- bin/bin/tmux-menu-pass-session.sh | 6 ++++++ tmux/.tmux.conf | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 bin/bin/tmux-menu-pass-session.sh diff --git a/bin/bin/tmux-menu-pass-session.sh b/bin/bin/tmux-menu-pass-session.sh new file mode 100755 index 0000000..d7656d4 --- /dev/null +++ b/bin/bin/tmux-menu-pass-session.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +while tmux has-session -t pass ; do echo waiting... ; sleep 1 ; done +tmux new-session -d -s pass ~/bin/tmux-menu-pass.sh +tmux set-option -t pass status off +exec tmux attach-session -t pass diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 756fcd3..bf89474 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -35,7 +35,7 @@ unbind-key L bind-key t display-menu \ music t "popup -KE -w 100% -R ~/bin/tmux-menu-music.sh" \ - pass p "popup -KE -R ~/bin/tmux-menu-pass.sh" \ + pass p "popup -KE -R ~/bin/tmux-menu-pass-session.sh" \ dict d "popup -KE -h 100% -R ~/bin/tmux-menu-dict.sh" \ calc c "popup -KE -R ~/bin/tmux-menu-calc.sh" \ top o "popup -KE -h 100% -R \"top -s 1\"" -- 2.44.0