Add tmux installation script
This commit is contained in:
Executable
+37
@@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Tmux Install Script
|
||||||
|
# :PROPERTIES:
|
||||||
|
# :header-args:bash: :tangle scripts/install-tmux.sh :shebang "#!/bin/bash" :mkdirp yes
|
||||||
|
# :END:
|
||||||
|
|
||||||
|
|
||||||
|
# [[file:../tmux.org::*Tmux Install Script][Tmux Install Script:1]]
|
||||||
|
set -euo pipefail
|
||||||
|
# Tmux Install Script:1 ends here
|
||||||
|
|
||||||
|
# Packages
|
||||||
|
|
||||||
|
|
||||||
|
# [[file:../tmux.org::*Packages][Packages:1]]
|
||||||
|
echo "==> Tmux packages"
|
||||||
|
paru -S --needed --noconfirm tmux
|
||||||
|
# Packages:1 ends here
|
||||||
|
|
||||||
|
# Tangle Configuration
|
||||||
|
|
||||||
|
|
||||||
|
# [[file:../tmux.org::*Tangle Configuration][Tangle Configuration:1]]
|
||||||
|
echo "==> Tangling tmux.org"
|
||||||
|
emacsclient -e '(org-babel-tangle-file "/home/thomas/.config/literate-dotfiles/tmux.org")'
|
||||||
|
# Tangle Configuration:1 ends here
|
||||||
|
|
||||||
|
# Install TPM Plugins
|
||||||
|
|
||||||
|
|
||||||
|
# [[file:../tmux.org::*Install TPM Plugins][Install TPM Plugins:1]]
|
||||||
|
echo "==> Installing TPM plugins"
|
||||||
|
if [ ! -d ~/.config/tmux/plugins/tpm ]; then
|
||||||
|
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
|
||||||
|
fi
|
||||||
|
tmux source ~/.config/tmux/tmux.conf
|
||||||
|
# Install TPM Plugins:1 ends here
|
||||||
@@ -3,6 +3,39 @@
|
|||||||
#+PROPERTY: header-args :tangle ~/.config/tmux/tmux.conf
|
#+PROPERTY: header-args :tangle ~/.config/tmux/tmux.conf
|
||||||
#+PROPERTY: header-args+ :comments both :mkdirp yes
|
#+PROPERTY: header-args+ :comments both :mkdirp yes
|
||||||
|
|
||||||
|
* Tmux Install Script
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args:bash: :tangle scripts/install-tmux.sh :shebang "#!/bin/bash" :mkdirp yes
|
||||||
|
:END:
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
set -euo pipefail
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Packages
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
echo "==> Tmux packages"
|
||||||
|
paru -S --needed --noconfirm tmux
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Tangle Configuration
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
echo "==> Tangling tmux.org"
|
||||||
|
emacsclient -e '(org-babel-tangle-file "/home/thomas/.config/literate-dotfiles/tmux.org")'
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Install TPM Plugins
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
echo "==> Installing TPM plugins"
|
||||||
|
if [ ! -d ~/.config/tmux/plugins/tpm ]; then
|
||||||
|
git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm
|
||||||
|
fi
|
||||||
|
tmux source ~/.config/tmux/tmux.conf
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Line
|
* Line
|
||||||
#+begin_src conf
|
#+begin_src conf
|
||||||
# Activate the status bar
|
# Activate the status bar
|
||||||
@@ -206,52 +239,10 @@ set-window-option -g aggressive-resize
|
|||||||
** Install plugins
|
** Install plugins
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
# set -g @plugin 'tmux-plugins/tmux-sessionist'
|
|
||||||
# set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
||||||
# set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
||||||
# set -g @plugin 'tmux-plugins/tmux-battery'
|
|
||||||
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
|
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
|
||||||
set -g @plugin 'seebi/tmux-colors-solarized'
|
set -g @plugin 'seebi/tmux-colors-solarized'
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Configuration
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
# =============================================================
|
|
||||||
# tmux-resurrect
|
|
||||||
# =============================================================
|
|
||||||
# for vim
|
|
||||||
set -g @resurrect-strategy-vim 'session'
|
|
||||||
# for neovim
|
|
||||||
set -g @resurrect-strategy-nvim 'session'
|
|
||||||
|
|
||||||
# Restoring pane contents
|
|
||||||
set -g @resurrect-capture-pane-contents 'on'
|
|
||||||
|
|
||||||
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
|
|
||||||
# =============================================================
|
|
||||||
|
|
||||||
|
|
||||||
# =============================================================
|
|
||||||
# tmux-continuum
|
|
||||||
# =============================================================
|
|
||||||
set -g @continuum-boot 'on'
|
|
||||||
set -g @continuum-boot-options 'iterm,fullscreen'
|
|
||||||
set -g @continuum-save-interval '15'
|
|
||||||
|
|
||||||
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux
|
|
||||||
# =============================================================
|
|
||||||
|
|
||||||
|
|
||||||
# =============================================================
|
|
||||||
# tmux-battery
|
|
||||||
# =============================================================
|
|
||||||
set -g @batt_charged_icon "="
|
|
||||||
set -g @batt_charging_icon "+"
|
|
||||||
set -g @batt_discharging_icon "-"
|
|
||||||
set -g @batt_attached_icon "o"
|
|
||||||
# =============================================================
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Colors
|
* Colors
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set -g @colors-solarized 'light'
|
set -g @colors-solarized 'light'
|
||||||
@@ -259,5 +250,5 @@ set -g @colors-solarized 'light'
|
|||||||
|
|
||||||
* Initialize TMUX plugin manager
|
* Initialize TMUX plugin manager
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.config/tmux/plugins/tpm/tpm'
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
Reference in New Issue
Block a user