chore: rework directory structure
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
1fbdeb0d21
commit
01225fd44d
169 changed files with 1410 additions and 1690 deletions
roles/user/shell/tmux
40
roles/user/shell/tmux/files/tmux.conf
Normal file
40
roles/user/shell/tmux/files/tmux.conf
Normal file
|
@ -0,0 +1,40 @@
|
|||
set -g default-terminal "tmux-256color"
|
||||
set -g default-command "${SHELL}"
|
||||
|
||||
set-window-option -g automatic-rename off
|
||||
set-option -g allow-rename off
|
||||
set-option -g renumber-windows on
|
||||
|
||||
set -g prefix C-a
|
||||
unbind C-b
|
||||
bind-key C-a send-prefix
|
||||
|
||||
unbind l
|
||||
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
bind > resize-pane -R 2
|
||||
bind < resize-pane -L 2
|
||||
bind + resize-pane -U 2
|
||||
bind - resize-pane -D 2
|
||||
|
||||
bind-key 'C-,' previous-window
|
||||
bind-key 'C-.' next-window
|
||||
|
||||
bind-key K clear-history
|
||||
bind-key R source-file ~/.tmux.conf \; display "Reloaded config file ~/.tmux.conf"
|
||||
bind-key b set status
|
||||
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S - ; save-buffer %1 ; delete-buffer'
|
||||
|
||||
source-file ~/.tmux/status.conf
|
||||
set -g status-position bottom
|
||||
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
set -g @continuum-restore 'on'
|
||||
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
10
roles/user/shell/tmux/files/tmux_status.conf
Normal file
10
roles/user/shell/tmux/files/tmux_status.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
set -g status-bg colour0
|
||||
set -g status-fg colour7
|
||||
set -g status-left-length 20
|
||||
set -g status-left '[#S@#[fg=colour13]#h#[fg=colour7]]'
|
||||
set -g status-right ' [%Y%m%d %H:%M:%S]'
|
||||
set -g status-interval 1
|
||||
set -g status-justify centre
|
||||
set -g status-position top
|
||||
setw -g window-status-current-format '#[fg=colour2][#I|#W#F]'
|
||||
setw -g window-status-format '[#I|#W#F]'
|
6
roles/user/shell/tmux/tasks/install.yml
Normal file
6
roles/user/shell/tmux/tasks/install.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
- name: Install tmux
|
||||
ansible.builtin.package:
|
||||
name: tmux
|
||||
state: present
|
||||
become: true
|
27
roles/user/shell/tmux/tasks/main.yml
Normal file
27
roles/user/shell/tmux/tasks/main.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
- name: Packages
|
||||
ansible.builtin.include_tasks: install.yml
|
||||
tags: install
|
||||
|
||||
- name: Create .tmux
|
||||
ansible.builtin.file:
|
||||
path: ~/.tmux
|
||||
state: directory
|
||||
mode: 0700
|
||||
|
||||
- name: Clone tpm
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/tmux-plugins/tpm
|
||||
dest: ~/.tmux/plugins/tpm
|
||||
|
||||
- name: Create tmux.conf
|
||||
ansible.builtin.copy:
|
||||
src: files/tmux.conf
|
||||
dest: ~/.tmux.conf
|
||||
mode: 0600
|
||||
|
||||
- name: Create tmux status configuration
|
||||
ansible.builtin.copy:
|
||||
src: files/tmux_status.conf
|
||||
dest: ~/.tmux/status.conf
|
||||
mode: 0600
|
Loading…
Add table
Add a link
Reference in a new issue