From: Sergey Matveev Date: Tue, 29 Sep 2020 18:38:24 +0000 (+0300) Subject: tmux menu/popup calculator X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=b3329cf839d342607468559e3b38d6078b125a02 tmux menu/popup calculator --- diff --git a/bin/bin/tmux-menu-calc.sh b/bin/bin/tmux-menu-calc.sh new file mode 100755 index 0000000..b8ae8bc --- /dev/null +++ b/bin/bin/tmux-menu-calc.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +tmux has-session -t calc || { + tmux new-session -d -s calc rlwrap -S "> " dc + tmux set-option -t calc status off +} +tmux attach-session -t calc diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index f522cc7..f01d131 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -37,6 +37,7 @@ bind-key t display-menu \ 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" \ + calc c "popup -KE -R ~/bin/tmux-menu-calc.sh" \ top o "popup -KE -R \"top -s 1\"" bind-key u {