From 7518da30061fd45612e37e9eac07b1513bdb5b95 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 29 Sep 2020 12:50:53 +0300 Subject: [PATCH] Example tmux menu usage --- bin/bin/dict.sh | 4 ++++ tmux/.tmux.conf | 4 ++++ 2 files changed, 8 insertions(+) create mode 100755 bin/bin/dict.sh diff --git a/bin/bin/dict.sh b/bin/bin/dict.sh new file mode 100755 index 0000000..442ceec --- /dev/null +++ b/bin/bin/dict.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +read word +sdcv $word | less diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 93eaeeb..7ca32a6 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -33,6 +33,10 @@ set-window-option -g window-status-last-style "bg=cyan" bind-key b set-option status unbind-key L +bind-key t display-menu \ + dict d "popup -KE -R ~/bin/dict.sh" \ + top t "popup -KE -R \"top -s 1\"" + bind-key u { capture-pane -J save-buffer /tmp/tmux-buffer -- 2.44.0