diff --git a/pi/.tmux.conf b/pi/.tmux.conf new file mode 100644 index 0000000..90d6a36 --- /dev/null +++ b/pi/.tmux.conf @@ -0,0 +1,98 @@ +# reload config file +bind r source-file ~/.tmux.conf + +# change prefix to ctrl z +unbind C-Z # remove bindings to ctrl z +set -g prefix C-Z # set ctrl z to prefix +bind C-Z send-prefix # make ctrl z send prefix for nested terminals + +# mouse control (clickable windows, panes, resizable panes) +set -g mouse on + +# prefix + ` goes to the marked pane +# prefix + m marks a pane +# prefix + m again unmarks that pane +# prefix + M unmarks pane anywhere +bind ` switch-client -t'{marked}' + +# deleting pane re-orders existing panes +set -g renumber-windows on + +# change horizontal split to | +bind-key "|" split-window -h -c "#{pane_current_path}" +bind-key "\\" split-window -fh -c "#{pane_current_path}" + +# change vertical split to - +bind-key "-" split-window -v -c "#{pane_current_path}" +bind-key "_" split-window -fv -c "#{pane_current_path}" + +# swap windows +bind -r "<" swap-window -d -t -1 +bind -r ">" swap-window -d -t +1 + +# new window -> prefix + c +# preserve current directory +bind c new-window -c "#{pane_current_path}" + +# toggle windows +bind Space last-window + + +# shorten command delay +set -sg escape-time 1 + +# don't rename windows automatically +#set -g allow-rename off + + +# Use Alt-arrow keys without prefix key to switch panes +bind -n M-Left select-pane -L +bind -n M-Right select-pane -R +bind -n M-Up select-pane -U +bind -n M-Down select-pane -D + +# set default terminal mode to 256 colors +set -g default-terminal "xterm-256color" +set -ga terminal-overrides ",xterm-256color:Tc" + + +###################### +### DESIGN CHANGES ### +###################### + +# loud or quiet? +set -g visual-activity off +set -g visual-bell off +set -g visual-silence off +setw -g monitor-activity off +set -g bell-action none + +# modes +setw -g clock-mode-colour white +setw -g mode-style 'fg=green bg=white bold' + +# panes +set -g pane-border-style fg=red +set -g pane-active-border-style fg=blue + +# statusbar +set -g status-position bottom +set -g status-justify left +set -g status-style 'fg=black bg=red bold' +set -g status-left '' +set -g status-right '%m-%d %H:%M ' +set -g status-right-length 20 +set -g status-left-length 50 + +setw -g window-status-current-style 'fg=red bg=black' +setw -g window-status-current-format ' [#I] #W #F ' + +setw -g window-status-style 'fg=red bg=black' +setw -g window-status-format ' [#I] #W #F ' + +setw -g window-status-bell-style 'fg=colour2 bg=colour1 bold' + +# messages +set -g message-style 'fg=black bg=red bold' + + diff --git a/pi/pi_setup.sh b/pi/pi_setup.sh index 8357919..5524715 100755 --- a/pi/pi_setup.sh +++ b/pi/pi_setup.sh @@ -1,7 +1,7 @@ # ======================================================================== -# Auth:dodd +# Auth: dodd # File: setup.sh -# Revn: 01-04-2025 1.0 +# Revn: 01-07-2025 2.0 # Func: automate pi setup # # TODO @@ -35,6 +35,7 @@ # uncommented building TDM and mv'ing binary to ~/bin # built ekho, moved to ~/bin/ # copied, built, and moved donut/boot to ~/src/ and ~/bin/ +#*01-07-2025: added symlink for .tmux.conf # # ======================================================================== @@ -97,6 +98,7 @@ cd ~ ln -sf ~/Documents/dotfiles/pi/.vim ~/.vim ln -sf ~/Documents/dotfiles/.vimrc ~/.vimrc ln -sf ~/Documents/dotfiles/pi/.bash_profile ~/.bashrc +ln -sf ~/Documents/dotfiles/pi/.tmux.conf ~/.tmux.conf # copy and build binaries cp ~/Documents/dotfiles/pi/donut.c ~/src