dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 13767c9cfe64063025065b5e797666c37024d069
parent e447abb6ecf21f173a1cd6665048cf09c06b9050
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun, 28 Apr 2019 09:32:59 +0200

Update tmux configuration for 2.9 and show minimal status bar by default

Diffstat:
M.Xresources | 4++--
M.tmux.conf | 51+++++++++++++++++++++++----------------------------
2 files changed, 25 insertions(+), 30 deletions(-)

diff --git a/.Xresources b/.Xresources @@ -5,8 +5,8 @@ Xcursor.size: 16 ! terminal colors ------------------------------------------------------------ ! see https://ciembor.github.io/4bit -*.foreground: #4d4d4c -*.background: #ffffff +*.foreground: #c5c8c6 +*.background: #1d1f21 /* black */ *color0: #434944 diff --git a/.tmux.conf b/.tmux.conf @@ -24,16 +24,15 @@ bind , rename-window "" \; command-prompt "rename-window '%%'" set -g default-terminal "screen-256color" # use 256 colors setw -g aggressive-resize on # resize window to smallest client -set -g pane-border-fg colour238 # border color for inactive panes -set -g pane-active-border-fg colour247 # border color for active panes +set -g pane-border-style fg=colour238 # border color for inactive panes +set -g pane-active-border-style fg=colour247 # border color for active panes # Status bar colors and format -setw -g window-status-bell-attr blink setw -g window-status-format ' #[fg=#999999]#I #[fg=$666666]#W ' setw -g window-status-current-format '#[fg=#ffffff] #I #W#[fg=#ffffff] ' setw -g window-status-separator '#[fg=#292929]|#[fg=default]' set -g status-bg default # background color for status bar -set -g status-position top # put status bar on top or bottom +set -g status-position bottom # put status bar on top or bottom set -g status-interval 2 # interval in s to update status set -g status-justify left # horizontal alignment set -g message-style fg=white,bg=black # appearance of status messages @@ -42,17 +41,17 @@ set -g message-command-style fg=white # appearance of status message cmds # Left section of status bar set -g status-left "" -# Hide status bar by default -set -g status off -bind -r -n M-t set -g status on -bind t set -g status on -bind -r -n M-T set -g status off -bind T set -g status off +# Status bar visibility +set -g status on +bind -r -n M-t set status on +bind -r -n M-T set status off +bind t set status on +bind T set status off # Right section of status bar -if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=#81a2be]#(/usr/local/bin/mpc | head -n 1 | sed 's/volume.*$//') #[fg=cyan]#(~/bin/battery-osx) #(~/bin/mailstatus.sh) #[fg=yellow]#(uptime|sed 's/.* //') #[fg=#666666]%F #[fg=#bababa]%R\"" +#if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=#81a2be]#(/usr/local/bin/mpc | head -n 1 | sed 's/volume.*$//') #[fg=cyan]#(~/bin/battery-osx) #(~/bin/mailstatus.sh) #[fg=yellow]#(uptime|sed 's/.* //') #[fg=#666666]%F #[fg=#bababa]%R\"" -if-shell 'uname | grep -qi Linux' "set -g status-right \"#[fg=cyan]#(~/bin/battery-linux) #(~/bin/mailstatus.sh) #[fg=yellow]#(cat /proc/loadavg|awk '{print $1;}') #[fg=#666666]%F #[fg=#bababa]%R\"" +#if-shell 'uname | grep -qi Linux' "set -g status-right \"#[fg=cyan]#(~/bin/battery-linux) #(~/bin/mailstatus.sh) #[fg=yellow]#(cat /proc/loadavg|awk '{print $1;}') #[fg=#666666]%F #[fg=#bababa]%R\"" # Scaling of status-bar sections set -g status-right-length 40 @@ -75,14 +74,14 @@ bind -r K resize-pane -U 5 # resize pane up with <C-a>K bind -r L resize-pane -R 5 # resize pane right with <C-a>L # Navigate panes with Meta (alt) modifier + hjkl -#bind -r -n M-h select-pane -L # navigate left with <C-a>h -#bind -r -n M-j select-pane -D # navigate down with <C-a>j -#bind -r -n M-k select-pane -U # navigate up with <C-a>k -#bind -r -n M-l select-pane -R # navigate right with <C-a>l -bind -r -n M-H resize-pane -L 5 # resize pane left with <C-a>H -bind -r -n M-J resize-pane -D 5 # resize pane down with <C-a>J -bind -r -n M-K resize-pane -U 5 # resize pane up with <C-a>K -bind -r -n M-L resize-pane -R 5 # resize pane right with <C-a>L +bind -r -n M-h select-pane -L # navigate left with M-h +bind -r -n M-j select-pane -D # navigate down with M-j +bind -r -n M-k select-pane -U # navigate up with M-k +bind -r -n M-l select-pane -R # navigate right with M-l +bind -r -n M-H resize-pane -L 5 # resize pane left with M-H +bind -r -n M-J resize-pane -D 5 # resize pane down with M-J +bind -r -n M-K resize-pane -U 5 # resize pane up with M-K +bind -r -n M-L resize-pane -R 5 # resize pane right with M-L # Navigate windows with Meta (alt) modifier + number keys bind -n M-1 select-window -t :=1 @@ -131,14 +130,10 @@ bind -n M-. run-shell "tmux list-sessions -F \"##S\" | fzf-tmux | xargs tmux swi bind '"' split-window -c "#{pane_current_path}" bind '%' split-window -h -c "#{pane_current_path}" -bind -n M-k split-window -b -c "#{pane_current_path}" # new split up -bind -n M-j split-window -c "#{pane_current_path}" # new split down -bind -n M-l split-window -h -c "#{pane_current_path}" # new split right -bind -n M-h split-window -b -h -c "#{pane_current_path}" # new split left -bind C-k split-window -b -c "#{pane_current_path}" # new split up -bind C-j split-window -c "#{pane_current_path}" # new split down -bind C-l split-window -h -c "#{pane_current_path}" # new split right -bind C-h split-window -b -h -c "#{pane_current_path}" # new split left +# bind -n M-k split-window -b -c "#{pane_current_path}" # new split up +# bind -n M-j split-window -c "#{pane_current_path}" # new split down +# bind -n M-l split-window -h -c "#{pane_current_path}" # new split right +# bind -n M-h split-window -b -h -c "#{pane_current_path}" # new split left bind -r z resize-pane -Z # toggle pane zoom with <C-a>z bind -r y next-layout # cycle to next pane layout with <C-a>y