123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- #clear all binds...?
- #unbind-key -a #oh, it really means all, not just reset to default.
- ##############################################
- # tmux-resurrect and tmux-continuum ##
- set -g @plugin 'tmux-plugins/tmux-resurrect'##
- set -g @plugin 'tmux-plugins/tmux-continuum'##
- # ##
- set -g @continuum-restore 'on' ##
- ##############################################
- ###############################################################################################################
- # oh this is cool. titles on panes. and i can re-name them. :) ... wont that be nice with tmux-continuum ##
- set -g pane-border-status top ##
- ###############################################################################################################
- ## STYLE STUFF ########################################################
- # ##
- # borders
- set -g pane-border-style 'fg=cyan bg=black bold' ##
- set -g pane-active-border-style 'fg=brightyellow bg=green' ##
- # copy mode
- #setw -g mode-style 'fg=colour1 bg=colour18 bold'
- # statusbar
- #set -g status-position bottom
- #set -g status-justify left
- #set -g status-style 'fg=colour1'
- #set -g status-left ''
- #set -g status-right '%Y-%m-%d %H:%M '
- set -g status-right '%Y%m%d %H:%M:%S '
- #set -g status-right-length 50
- #set -g status-left-length 10
- #setw -g window-status-current-style 'fg=colour0 bg=colour1 bold'
- setw -g window-status-current-style 'fg=colour3 bg=colour0 bold'
- #setw -g window-status-current-format ' #I #W #F '
- #setw -g window-status-style 'fg=colour1 dim'
- #setw -g window-status-format ' #I #[fg=colour7]#W #[fg=colour1]#F '
- #setw -g window-status-bell-style 'fg=colour2 bg=colour1 bold'
- # messages
- #set -g message-style 'fg=colour2 bg=colour0 bold'
- #######################################################################
- ## MESSAGE STUFF #################
- # keep messages (1000=1s) ########
- set-option -g display-time 8000 ##
- ##################################
- ## PANE MANAGEMENT THINGS ########################## ######################################################
- # ##
- #join-pane [-dhv] [-l size | -p percentage] [-s src-pane] [-t dst-pane] ##
- # (alias: joinp) ##
- # Like split-window, but instead of splitting dst-pane and creating ##
- # a new pane, split it and move src-pane into the space. This can ##
- # be used to reverse break-pane. ##
- #To simplify this, I have these binds in my .tmux.conf for that: ##
- # ##
- # pane movement ##
- bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" ##
- bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" ##
- # ##
- ## ##
- # easy switch panes (no prefix bind) ##
- 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 ##
- # ##
- #default split ##
- #bind-key \" split-window -h ##
- #bind-key % split-window -v ##
- # easy split ##
- bind-key h split-window -h ##
- bind-key v split-window -v ##
- #or ##
- bind-key | split-window -h ##
- bind-key - split-window -v ##
- # ##
- # easy shift arrow to switch window (wont want this if wanting that in emacs in tmux. will override.) ##
- # do want to change that bind tho, since S-Left/Right is what yakuake uses too. ##
- bind-key -n S-Left previous-window ##
- bind-key -n S-Right next-window ##
- # ##
- # synchronize panes ##
- # wow. same commands typed into all panes n view. works ssh'd in to other systems. wow. ##
- bind-key y set-window-option synchronize-panes\; display-message "synchronize mode toggled." ##
- # ##
- # easy pane navigation ##
- bind -n M-w select-pane -U ##
- bind -n M-a select-pane -L ##
- bind -n M-s select-pane -D ##
- bind -n M-d select-pane -R ##
- #
- ## SCROLLL STUFF ###################################################
- # more scrollback (i made this up... see if there's a real one) ##
- #set-option -g scrollback-lines 9000 ##
- #there is! and i wasnt far off. ##
- set-option -g history-limit 9000 ##
- ####################################################################
- ## MOUSE STUFF ############################################################################################
- #mouse mode ##
- set -g mouse on ##
- #bind -n M-m set -g mouse off \; display-message "mouse toggled off" ##
- bind-key m set -g mouse \; display-message "mouse toggled" ##
- #bind -n C-m set -g mouse on \; display-message "mouse toggled on" # aw, does this instead of "enter". ##
- #bind -n C-n set -g mouse on \; display-message "mouse toggled on" ##
- #bind -u Enter # nope ##
- #unbind Enter #doesnt work. so i guess it's C-j for enter until this gets mended. ##
- #unbind C-m #doesnt work. so i guess it's C-j for enter until this gets mended. ##
- #unbind-key -a Enter #doesnt work. so i guess it's C-j for enter until this gets mended. ##
- #unbind-key -a C-m #doesnt work. so i guess it's C-j for enter until this gets mended. ##
- ###########################################################################################################
- ## CLIPBOARD STUFF ##################################################################
- # clipboard mode ##
- #set -s set-clipboard on ##
- #toggle clipboard modes. ##
- #bind-key c set -g set-clipboard \; display-message "clip toggled" ##
- ###bind-key c set -g set-clipboard on \; display-message "clip toggled ON" ##
- #####bind-key C set -g set-clipboard on \; display-message "clip toggled ON" ##
- #^ stuff like that, if ye like. ... kinda. ##
- #####################################################################################
- ## CONFIG RELOAD STUFF ########################################################
- # easy config reload ##
- bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded" ##
- ###############################################################################
- ######## MISC... / UNSORTED...
- ############################################################################################################################################################
- # full colour
- set-option -sa terminal-overrides ",xterm*:Tc"
- ##############################################################################
- #######################################################################
- ### here followss a [now being edited] paste of the example default in ... ###
- ### +48.0°C20231014 16:27:13 mozart gentoostudio /home/digit %
- ### cat /bedrock/strata/jentoo/usr/share/doc/tmux-3.3a-r1/example_tmux.conf >> .tmux.conf
- ###
- ### and then i see weird things launch when i refresh my config, and i think, this is not default...
- ###
- ### oh no, oh it's all yuck. this is not normal stuff. ...
- #
- #####################
- #
- # Example .tmux.conf
- #
- # By Nicholas Marriott. Public domain.
- #
- # Some tweaks to the status line
- #set -g status-right "%H:%M"
- #set -g window-status-current-style "underscore"
- # If running inside tmux ($TMUX is set), then change the status line to red
- #%if #{TMUX}
- #set -g status-bg red
- #%endif
- # Enable RGB colour if running in xterm(1)
- #set-option -sa terminal-overrides ",xterm*:Tc"
- # Change the default $TERM to tmux-256color
- #set -g default-terminal "tmux-256color"
- # No bells at all
- #set -g bell-action none
- # Keep windows around after they exit
- #set -g remain-on-exit on
- # Change the prefix key to C-a
- #set -g prefix C-a
- #unbind C-b
- #bind C-a send-prefix
- # Turn the mouse on, but without copy mode dragging
- #set -g mouse on
- #unbind -n MouseDrag1Pane
- #unbind -Tcopy-mode MouseDrag1Pane
- # Some extra key bindings to select higher numbered windows
- #bind F1 selectw -t:10
- #bind F2 selectw -t:11
- #bind F3 selectw -t:12
- #bind F4 selectw -t:13
- #bind F5 selectw -t:14
- #bind F6 selectw -t:15
- #bind F7 selectw -t:16
- #bind F8 selectw -t:17
- #bind F9 selectw -t:18
- #bind F10 selectw -t:19
- #bind F11 selectw -t:20
- #bind F12 selectw -t:21
- # A key to toggle between smallest and largest sizes if a window is visible in
- # multiple places
- #bind F set -w window-size
- # Keys to toggle monitoring activity in a window and the synchronize-panes option
- #bind m set monitor-activity
- #bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'
- # Create a single default session - because a session is created here, tmux
- # should be started with "tmux attach" rather than "tmux new"
- #new -d -s0 -nirssi 'exec irssi'
- #set -t0:0 monitor-activity on
- #set -t0:0 aggressive-resize on
- #neww -d -ntodo 'exec emacs ~/TODO'
- #setw -t0:1 aggressive-resize on
- #neww -d -nmutt 'exec mutt'
- #setw -t0:2 aggressive-resize on
- #neww -d
- #neww -d
- #neww -d
|