diff options
-rw-r--r-- | .tmux.conf | 15 | ||||
-rw-r--r-- | .tmux/thesetup | 10 |
2 files changed, 10 insertions, 15 deletions
@@ -36,6 +36,8 @@ bind r source-file ~/.tmux.conf bind-key -r C-h select-window -t :- bind-key -r C-l select-window -t :+ + + # quick pane cycling unbind ^A bind ^A select-pane -t :.+ @@ -45,12 +47,17 @@ bind ^A select-pane -t :.+ bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" bind -n C-n run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D" bind -n C-p run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U" -bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R" +#bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R" #alternative for ctrl-l bind l send-keys 'C-l' # setup a decent environment bind m source-file ~/.tmux/thesetup +bind C-f source-file ~/.tmux/write-fict +bind C-l source-file ~/.tmux/write-lux +bind C-w source-file ~/.tmux/write-wire +bind C-d source-file ~/.tmux/dev + set -g status-left-length 52 set -g status-right-length 451 @@ -63,7 +70,6 @@ set-option -g message-style fg=colour16,bg=colour221,bold set -g status-left '#[fg=colour235,bg=colour252,bold] #S #[fg=colour252,bg=colour238,nobold]#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]' set -g window-status-format "#[fg=white,bg=colour234] #I #W " - set -g default-terminal "screen-256color" set-window-option -g automatic-rename off set-option -g allow-rename off @@ -73,10 +79,5 @@ bind -n C-w run "set status" set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-yank' -# Other examples: -# set -g @plugin 'github_username/plugin_name' -# set -g @plugin 'git@github.com/user/plugin' -# set -g @plugin 'git@bitbucket.com/user/plugin' - # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run -b '~/.tmux/plugins/tpm/tpm' diff --git a/.tmux/thesetup b/.tmux/thesetup index a8490d9..16099da 100644 --- a/.tmux/thesetup +++ b/.tmux/thesetup @@ -9,18 +9,12 @@ selectp -t 1 # select the original pane send 'cd ~/temp && mutt' enter #switch to downloads and open mutt #send '@scratch' enter #open kanban project list rename-window "" -neww -t 2 -n '' #create and new window for newsboat -send 'newsboat' enter #move to done folder and list -neww -t 3 -n '' +neww -t 2 -n '' splitw -h -p 22 selectp -t 1 # select the original pane splitw -h -p 69 send "cd writing/lbh/ && v lbh.txt" enter #open vim -neww -t 4 -n '' #create and new window for newsbeuter -send 'mpd && music' enter #open rss reader -neww -t 5 -n '' #create and new window for newsbeuter -send 'ranger' enter #open ranger -neww -t 6 -n '' +neww -t 3 -n '' splitw -h -p 22 selectp -t 1 # select the original pane splitw -h -p 69 |