From 0aa7f1fb01704411564235b8bea5e01a60e41084 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 19 Oct 2021 12:11:05 +0300 Subject: [PATCH] Updated tmux has different options --- tmux/.tmux.conf | 24 ++++++++++++------------ tmux/bin/tmux-common.sh | 10 ++++------ x/bin/start-im | 12 ++++++------ 3 files changed, 22 insertions(+), 24 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 2ce6cae..20bec23 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -38,7 +38,7 @@ bind-key u { capture-pane -J save-buffer /tmp/tmux-buffer delete-buffer - display-popup -KE -w 100% -R "urlview /tmp/tmux-buffer" + display-popup -E -w 100% "urlview /tmp/tmux-buffer" } bind-key y { @@ -56,16 +56,16 @@ bind-key Y { } bind-key t display-menu \ - music t "display-popup -KE -w 100% -R ~/bin/tmux-menu-music.sh" \ - pass p "display-popup -KE -R ~/bin/tmux-menu-pass-session.sh" \ - dict d "display-popup -KE -h 100% -R ~/bin/tmux-menu-dict.sh" \ - calc c "display-popup -KE -R ~/bin/tmux-menu-calc.sh" \ - cal l "display-popup -R \"cal -3N\"" \ - top o "display-popup -KE -h 100% -R \"top -s 1\"" + music t "display-popup -E -w 100% '~/bin/tmux-menu-music.sh'" \ + pass p "display-popup -E '~/bin/tmux-menu-pass-session.sh'" \ + dict d "display-popup -E -h 100% '~/bin/tmux-menu-dict.sh'" \ + calc c "display-popup -E '~/bin/tmux-menu-calc.sh'" \ + cal l "display-popup 'cal -3N'" \ + top o "display-popup -E -h 100% 'top -s 1'" bind-key o display-menu \ - find o "display-popup -KE -w 100% -R \"~/bin/tmux-fzf.zsh find '#{pane_current_path}'\"" \ - buf-files f "display-popup -KE -w 100% -R \"~/bin/tmux-fzf.zsh buf-files '#{pane_current_path}'\"" \ - git-files g "display-popup -KE -w 100% -R \"~/bin/tmux-fzf.zsh git-files '#{pane_current_path}'\"" \ - git-branches b "display-popup -KE -w 100% -R \"~/bin/tmux-fzf.zsh git-branches '#{pane_current_path}'\"" \ - git-commits c "display-popup -KE -w 100% -R \"~/bin/tmux-fzf.zsh git-commits '#{pane_current_path}'\"" + find o "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh find '#{pane_current_path}'\"" \ + buf-files f "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh buf-files '#{pane_current_path}'\"" \ + git-files g "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh git-files '#{pane_current_path}'\"" \ + git-branches b "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh git-branches '#{pane_current_path}'\"" \ + git-commits c "display-popup -E -w 100% \"~/bin/tmux-fzf.zsh git-commits '#{pane_current_path}'\"" diff --git a/tmux/bin/tmux-common.sh b/tmux/bin/tmux-common.sh index 35de255..49936a8 100644 --- a/tmux/bin/tmux-common.sh +++ b/tmux/bin/tmux-common.sh @@ -1,11 +1,9 @@ -TMUX=/usr/local/bin/tmux - paste() { local pane="$1" local cmd="$2" - $TMUX set-buffer "$cmd" - $TMUX paste-buffer -t "$pane" - $TMUX delete-buffer - $TMUX send-keys -t "$pane" Enter + tmux set-buffer "$cmd" + tmux paste-buffer -t "$pane" + tmux delete-buffer + tmux send-keys -t "$pane" Enter } diff --git a/x/bin/start-im b/x/bin/start-im index 73de2a7..3b883d8 100755 --- a/x/bin/start-im +++ b/x/bin/start-im @@ -2,14 +2,14 @@ . ~/bin/tmux-common.sh -$TMUX has-session -t im && exit -$TMUX new-session -d -s im -$TMUX rename-window -t im:1 "mattermost" -$TMUX split-window -t im:1 +tmux has-session -t im && exit +tmux new-session -d -s im +tmux rename-window -t im:1 "mattermost" +tmux split-window -t im:1 paste im:1.0 "~/work/matterircd/start.sh" sleep 1 paste im:1.1 "irssi" -$TMUX resize-pane -U -t im:1 15 +tmux resize-pane -U -t im:1 15 -CMD="$TMUX attach-session -t im" CMDTITLE="Terminal8" ~/bin/dwm-term & +CMD="tmux attach-session -t im" CMDTITLE="Terminal8" ~/bin/dwm-term & -- 2.44.0