From b1afd39a86e5d0d94158d2e800933144b7d6185d Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Fri, 12 May 2023 20:26:16 -0400 Subject: [PATCH] tmux: misc changes to dwm binds also status bar is back --- src/.config/tmux/tmux.conf | 8 ++++++-- src/.local/bin/dwm.tmux | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/.config/tmux/tmux.conf b/src/.config/tmux/tmux.conf index d2a0836..480dd6e 100644 --- a/src/.config/tmux/tmux.conf +++ b/src/.config/tmux/tmux.conf @@ -2,7 +2,11 @@ unbind C-b set-option -g prefix C-a bind-key C-a send-prefix -set -g status off +set -g status-position top +set -g status-left-length 20 +set -g status-left '#{user}@#h' +set -g status-right "" +set -g status-justify centre set escape-time 20 @@ -43,6 +47,6 @@ bind -n C-w newpanecurdir bind -n C-c killpane bind -n C-u nextpane bind -n C-i prevpane -bind -n C-Enter zoom +bind -n C-b zoom bind h decmfact bind l incmfact diff --git a/src/.local/bin/dwm.tmux b/src/.local/bin/dwm.tmux index 0156b9f..de9c0f2 100755 --- a/src/.local/bin/dwm.tmux +++ b/src/.local/bin/dwm.tmux @@ -112,3 +112,7 @@ case $command in window) window $args;; *) echo "unknown command"; exit 1;; esac + +# hacky fix to prevent tmux from displaying a "returned 1" prompt +# probably ignoring something but can't matter that much +exit 0