From b3329cf839d342607468559e3b38d6078b125a02 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 29 Sep 2020 21:38:24 +0300 Subject: [PATCH] tmux menu/popup calculator --- bin/bin/tmux-menu-calc.sh | 7 +++++++ tmux/.tmux.conf | 1 + 2 files changed, 8 insertions(+) create mode 100755 bin/bin/tmux-menu-calc.sh 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 { -- 2.44.0