From: Sergey Matveev Date: Wed, 30 Sep 2020 18:10:20 +0000 (+0300) Subject: Fix problems with background menu passman X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=4f63bb663b5e65bd6e61e7c07fb9869aae659f46 Fix problems with background menu passman --- 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\""