]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Example tmux menu usage
authorSergey Matveev <stargrave@stargrave.org>
Tue, 29 Sep 2020 09:50:53 +0000 (12:50 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 29 Sep 2020 09:50:53 +0000 (12:50 +0300)
bin/bin/dict.sh [new file with mode: 0755]
tmux/.tmux.conf

diff --git a/bin/bin/dict.sh b/bin/bin/dict.sh
new file mode 100755 (executable)
index 0000000..442ceec
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+read word
+sdcv $word | less
index 93eaeebb68c034920de342f32633913b655a1187..7ca32a6469748f045d5f5f9b6929bc11a6d16d0c 100644 (file)
@@ -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