commit f6d49365ce6d900b2b76dd62154d4bce037b5d6d parent 016777dcf81c130e21a04286a2d353e4c1ac49bf Author: Sven Möller <sven@svenmoeller.xyz> Date: Sat, 28 May 2022 14:59:00 +0200 Tmux config, cleanup Diffstat:
M | bash/.profile | | | 15 | ++++++--------- |
M | tmux/.config/tmux/tmux.conf | | | 2 | +- |
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/bash/.profile b/bash/.profile @@ -16,13 +16,10 @@ if [ "$(uname -o)" = "Android" ]; then export NOTIFY=termux-toast fi -#if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then -# export BROWSER='setsid -f qutebrowser' -# export NOTIFY=notify-send -# startx -#elif [ -z "$STY" ] && [ -z "$TMUX" ] && [ "$(uname -o)" != "Android" ]; then -if [ -z "$STY" ] && [ -z "$TMUX" ] && [ "$(uname -o)" != "Android" ]; then - export BROWSER='w3m' - export NOTIFY=echo - tmux new -AD +if [ -z "$TMUX" ]; then + if [ -z "SSH_TTY" ]; then + tmux new -AD + else + tmux new -AD && exit + fi fi diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf @@ -1,6 +1,6 @@ #Prefix is Ctrl-a set -g prefix C-a -bind a send-prefix +bind -n send-prefix C-b bind C-a last-window unbind C-b