aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tw/home/common.scm1
-rw-r--r--tw/home/files/tmux.conf29
2 files changed, 30 insertions, 0 deletions
diff --git a/tw/home/common.scm b/tw/home/common.scm
index b90d4bc5..5b61e587 100644
--- a/tw/home/common.scm
+++ b/tw/home/common.scm
@@ -44,6 +44,7 @@
("htop/htoprc" ,(local-file "files/htoprc"))
("lesskey" ,(local-file "files/lesskey"))
("ranger/rc.conf" ,(local-file "files/ranger.conf"))
+ ("tmux/tmux.conf" ,(local-file "files/tmux.conf"))
("user-dirs.locale" ,(plain-file "user-dirs.locale" "C")) ; Not sure if this is needed. Arch has it.
("user-dirs.dirs" ,(local-file "files/user-dirs.dirs"))))
diff --git a/tw/home/files/tmux.conf b/tw/home/files/tmux.conf
new file mode 100644
index 00000000..f5a2379c
--- /dev/null
+++ b/tw/home/files/tmux.conf
@@ -0,0 +1,29 @@
+set -g prefix C-a
+bind C-a send-prefix
+unbind C-b
+
+# reload tmux config
+bind r source-file "${XDG_CONFIG_HOME}/tmux/tmux.conf"
+
+set -g default-command "${SHELL}"
+
+set -g set-titles on
+set -g set-titles-string '#T (tmux:#S:#W)'
+
+set -s escape-time 0
+
+# status bar
+set -g status-bg colour8
+set -g status-fg white
+set -g status-justify left
+set -g status-right '#[fg=colour10]#S:#I:#P #[fg=colour14]#{t:client_activity}'
+
+# keymap
+unbind-key j
+bind-key j select-pane -D
+unbind-key k
+bind-key k select-pane -U
+unbind-key h
+bind-key h select-pane -L
+unbind-key l
+bind-key l select-pane -R