chore: rework directory structure

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2023-08-27 11:43:02 +02:00
parent 1fbdeb0d21
commit 01225fd44d
Signed by: mfocko
GPG key ID: 7C47D46246790496
169 changed files with 1410 additions and 1690 deletions
roles/user/shell/tmux

View 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'

View 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]'

View file

@ -0,0 +1,6 @@
---
- name: Install tmux
ansible.builtin.package:
name: tmux
state: present
become: true

View 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