aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <17158086+Trumeet@users.noreply.github.com>2019-11-10 13:03:13 -0800
committerTrumeet <17158086+Trumeet@users.noreply.github.com>2019-11-10 13:03:13 -0800
commit6cd0a898643f927edf8cb4abc94f217fa9647447 (patch)
tree4525b029d29a68622f427622491501a0286ccfe5
parent7589a1607cdd3495f56452adc1bf797e1ed13018 (diff)
downloaddotfiles-6cd0a898643f927edf8cb4abc94f217fa9647447.tar
dotfiles-6cd0a898643f927edf8cb4abc94f217fa9647447.tar.gz
dotfiles-6cd0a898643f927edf8cb4abc94f217fa9647447.tar.bz2
dotfiles-6cd0a898643f927edf8cb4abc94f217fa9647447.zip
feat: add tmux configurations
-rw-r--r--.gitmodules3
-rw-r--r--README.md2
-rw-r--r--tmux/.tmux.conf15
-rw-r--r--tmux/.tmux/.gitignore1
m---------tmux/.tmux/tpm0
5 files changed, 20 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..6c080a5
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "tmux/.tmux/tpm"]
+ path = tmux/.tmux/tpm
+ url = https://github.com/tmux-plugins/tpm
diff --git a/README.md b/README.md
index 62943bb..fb8ac1a 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@
```shell
$> cd ~
-$> git clone https://github.com/Trumeet/Dotfiles.git
+$> git clone --recurse-submodules https://github.com/Trumeet/Dotfiles.git
$> cd Dotfiles
```
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf
new file mode 100644
index 0000000..3b350ec
--- /dev/null
+++ b/tmux/.tmux.conf
@@ -0,0 +1,15 @@
+unbind ^b
+set -g prefix 'C-a'
+bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
+set -g mouse on
+
+set -g @plugin 'tmux-plugins/tpm'
+set -g @plugin 'thewtex/tmux-mem-cpu-load'
+set -g @plugin 'tmux-plugins/tmux-battery'
+set -g @plugin 'tmux-plugins/tmux-online-status'
+run -b '~/.tmux/tpm/tpm'
+
+set -g @online_icon "OK"
+set -g @offline_icon "KO"
+
+set -g status-right "Online: ${online_status} #{battery_percentage} #($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load -a 0 -g 0 -c -q -i 2) #[default]"
diff --git a/tmux/.tmux/.gitignore b/tmux/.tmux/.gitignore
new file mode 100644
index 0000000..16873f6
--- /dev/null
+++ b/tmux/.tmux/.gitignore
@@ -0,0 +1 @@
+plugins/
diff --git a/tmux/.tmux/tpm b/tmux/.tmux/tpm
new file mode 160000
+Subproject 26d9ace1b47f4591b2afdf333442a498311b6ac