tmux, motd

This commit is contained in:
2025-01-07 19:47:50 +01:00
parent 77f9b802e9
commit 4de2489293
5 changed files with 62 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "files/motd"]
path = files/motd
url = gitea@git.hoekveen.net:mark/motd.git
Submodule
+1
Submodule files/motd added at 9614418079
+5
View File
@@ -61,3 +61,8 @@
become: true
tasks:
- import_tasks: tasks/nocturnal_smb.yml
- name: Install tmux
hosts: all
become: true
tasks:
- import_tasks: tasks/tmux.yml
+17
View File
@@ -0,0 +1,17 @@
- name: Install tmux
pacman:
name: "tmux"
state: present
when:
- ansible_os_family == "Archlinux"
- name: Install tmux
apt:
name: "tmux"
state: present
when:
- ansible_os_family == "Debian"
- name: Copy config file
copy:
src: tmux/tmux.conf
dest: /etc/tmux.conf
mode: "0644"
+36
View File
@@ -0,0 +1,36 @@
unbind C-b
set-option -g prefix C-space
bind-key C-space send-prefix
setw -g mode-keys vi
set-window-option -g xterm-keys on
set-window-option -g mode-keys vi
set-window-option -g monitor-activity on
setw -g automatic-rename
set -g mouse on
set -g history-limit 30000
unbind j
unbind '"' # unbind horizontal split
unbind % # unbind vertical split
bind-key b split-window -v # split pane horizontally
bind-key v split-window -h # split pane vertically
bind-key - split-window -v
bind-key / split-window -h
bind-key Space list-panes
bind-key Enter break-pane
bind C-j previous-window
bind C-k next-window
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key C-h resize-pane -L
bind-key C-j resize-pane -D
bind-key C-k resize-pane -U
bind-key C-l resize-pane -R