diff --git a/roles/cm3588_conf/files/tmux.conf b/roles/cm3588_conf/files/tmux.conf new file mode 100644 index 0000000..b000a0b --- /dev/null +++ b/roles/cm3588_conf/files/tmux.conf @@ -0,0 +1,40 @@ +#256 colors and utf8 +set -g default-terminal "screen-256color" +#set-option -g status-utf8 on #DEPRECATED +#set-window-option -g utf8 on #DEPRECATED + +#start window numbering at 1 +set -g base-index 1 +set-option -g renumber-windows on + +#use screens modifier key +unbind C-b +set -g prefix C-a + +#fix left statusbar +set -g status-left-length 1000 + +#statusbar theming +set-window-option -g window-status-current-style bg=blue,fg=black +set-window-option -g window-status-format " #I #W " +set-window-option -g window-status-current-format " #I #W " +set -g status-style bg=terminal,fg=white +set -g status-left "#h #[fg=white,bold]|#[fg=green,bold] %H:%M #[fg=white,bold]| " +set -g status-right "" + +#display date code "#[fg=white,bold]|#[fg=yellow] %d.%m.%Yi" + +#quick reload +bind R source-file ~/.tmux.conf + +#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 '%%'" + +#sizing +setw -g aggressive-resize on + +#mouse support +set -g mouse on +#set -g terminal-overrides 'xterm*:smcup@:rmcup@' + diff --git a/roles/cm3588_conf/tasks/main.yml b/roles/cm3588_conf/tasks/main.yml index 46b3763..697552a 100644 --- a/roles/cm3588_conf/tasks/main.yml +++ b/roles/cm3588_conf/tasks/main.yml @@ -16,3 +16,10 @@ - src: 10-nopassword.conf - src: 11-sftpaccess.conf - src: 99-dropmatch.conf + +- name: Add tmux sftp-config + become: false + ansible.builtin.copy: + src: tmux.conf + dest: ~/.config/tmux/tmux.conf + mode: "0664"