daily pastebin goal
91%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 63 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. # tmux launch script
  2.  
  3. #!/bin/bash
  4. outerconf="/home/$USER/.tmux.outer.conf"
  5. innerconf="/home/$USER/.tmux.inner.conf"
  6. tmux -f $outerconf new-session \; \
  7.     split-window -v -p 65 \; \
  8.     split-window -h \; \
  9.     select-pane -t 0 \; \
  10.     send-keys "tmux -f $innerconf -L top-pane new-session \; select-window -t 0 \; se
  11. nd-keys "weechat" C-m \;" C-m \; \
  12.     select-pane -t 1 \; \
  13.     send-keys "tmux -f $innerconf -L left-pane" C-m \; \
  14.     select-pane -t 2 \; \
  15.     send-keys "tmux -f $innerconf -L right-pane" C-m \; \
  16.  
  17. # tmux conf for "master" process
  18.  
  19. # Bare config for master tmux process that runs subprocesses
  20. # Mouse enabled to allow pane switching by click
  21. # Statusbar disbled as panes will display their own
  22. # Enable mouse mode (tmux 2.1 and above)
  23. set -g mouse on
  24. # default term
  25. set -g default-terminal "screen-256color"
  26. # statusbar
  27. set -g status off
  28. # panes
  29. set -g pane-active-border-fg colour1
  30. set -g pane-border-fg colour233
  31.  
  32.  
  33. # tmux conf for "inner" processes
  34.  
  35. # Functionality Changes
  36. # remap prefix from 'C-b' to 'C-a'
  37. unbind C-b
  38. set -g prefix C-a
  39. bind-key C-a send-prefix
  40. # split panes using | and -
  41. bind | split-window -h
  42. bind - split-window -v
  43. unbind '"'
  44. unbind %
  45. # reload config file (change file location to your the tmux.conf you want to use)
  46. bind r source-file ~/.tmux.conf
  47. # Enable mouse mode (tmux 2.1 and above)
  48. set -g mouse on
  49. # Shift arrow to switch windows
  50. bind -n S-Left  previous-window
  51. bind -n S-Right next-window
  52. # Shit arrow for new window and nameing
  53. bind -n S-Down new-window
  54. bind -n S-Up command-prompt 'rename-window %%'
  55. # don't rename windows automatically
  56. set-window-option -g allow-rename off
  57. # Visual Changes
  58. # default term
  59. set -g default-terminal "screen-256color"
  60. # notification of display change
  61. #set -g visual-activity on
  62. setw -g monitor-activity on
  63. # statusbar
  64. set -g status-interval 1
  65. set -g status-position top
  66. set -g status-justify left
  67. set -g status-bg default
  68. set -g status-fg colour10
  69. set -g status-left ''
  70. set -g status-right '#[fg=colour10,bg=default,bold] %Y-%m-%d #[fg=colour10,bg=default,bold] %H:%M:%S '
  71. setw -g window-status-current-fg colour1
  72. setw -g window-status-current-bg colour6
  73. setw -g window-status-current-attr bold
  74. #setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top