]> Sergey Matveev's repositories - dotfiles.git/commitdiff
tmux menu/popup calculator
authorSergey Matveev <stargrave@stargrave.org>
Tue, 29 Sep 2020 18:38:24 +0000 (21:38 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 29 Sep 2020 18:38:24 +0000 (21:38 +0300)
bin/bin/tmux-menu-calc.sh [new file with mode: 0755]
tmux/.tmux.conf

diff --git a/bin/bin/tmux-menu-calc.sh b/bin/bin/tmux-menu-calc.sh
new file mode 100755 (executable)
index 0000000..b8ae8bc
--- /dev/null
@@ -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
index f522cc78a8d950e6a32b55e80d3d1eaf94c53b60..f01d1318bca36d02479bbb847fbe8dde4cbbbfa0 100644 (file)
@@ -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 {