feat: initialize repo
This commit is contained in:
1
tmux/.gitignore
vendored
Normal file
1
tmux/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
plugins/
|
||||
16
tmux/README.md
Normal file
16
tmux/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Installation
|
||||
|
||||
1. Make sure that `tmux` is installed on your system.
|
||||
|
||||
2. Please clone this repository to your `~/.config/tmux` directory:
|
||||
|
||||
```bash
|
||||
mkdir -p ~/.config/tmux
|
||||
git clone git@github.com:antistereov/tmux.git ~/.config/tmux
|
||||
```
|
||||
|
||||
3. To install this custom configuration, run:
|
||||
|
||||
```bash
|
||||
install.sh
|
||||
```
|
||||
17
tmux/install.sh
Executable file
17
tmux/install.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
echo "Installing Catppuccin..."
|
||||
mkdir -p ~/.config/tmux/plugins/catppuccin
|
||||
git clone -b v2.1.3 https://github.com/catppuccin/tmux.git ~/.config/tmux/plugins/catppuccin/tmux
|
||||
|
||||
echo "Installing tmux-cpu..."
|
||||
mkdir -p ~/.config/tmux/plugins/tmux-cpu
|
||||
git clone https://github.com/tmux-plugins/tmux-cpu.git ~/.config/tmux/plugins/tmux-cpu
|
||||
|
||||
echo "Installing tmux-battery..."
|
||||
mkdir -p ~/.config/tmux/plugins/tmux-battery
|
||||
git clone https://github.com/tmux-plugins/tmux-battery.git ~/.config/tmux/plugins/tmux-battery
|
||||
|
||||
echo "Applying custom configuration..."
|
||||
tmux source ~/.config/tmux/tmux.conf
|
||||
40
tmux/tmux.conf
Normal file
40
tmux/tmux.conf
Normal file
@@ -0,0 +1,40 @@
|
||||
unbind r
|
||||
bind r source-file ~/.config/tmux/tmux.conf
|
||||
|
||||
set -g prefix C-b
|
||||
|
||||
# Keybindings
|
||||
bind-key h select-pane -L
|
||||
bind-key j select-pane -D
|
||||
bind-key k select-pane -U
|
||||
bind-key l select-pane -R
|
||||
|
||||
# Resize panes using Shift + vim-keys after prefix
|
||||
bind-key C-h resize-pane -L 5
|
||||
bind-key C-j resize-pane -D 5
|
||||
bind-key C-k resize-pane -U 5
|
||||
bind-key L resize-pane -R 5
|
||||
|
||||
# Options to make tmux more pleasant
|
||||
set -g mouse on
|
||||
set -g default-terminal "tmux-256color"
|
||||
set-option -g status-position top
|
||||
|
||||
# Configure the catppuccin plugin
|
||||
set -g @catppuccin_flavor "mocha"
|
||||
set -g @catppuccin_window_status_style "rounded"
|
||||
|
||||
set -g @thm_mantle "#1e1e2f"
|
||||
|
||||
run ~/.config/tmux/plugins/catppuccin/tmux/catppuccin.tmux
|
||||
|
||||
# Make the status line pretty and add some modules
|
||||
set -g status-right-length 100
|
||||
set -g status-left-length 100
|
||||
set -g status-left ""
|
||||
set -g status-right "#{E:@catppuccin_status_session}"
|
||||
set -agF status-right "#{E:@catppuccin_status_battery}"
|
||||
set -agF status-right "#{E:@catppuccin_status_cpu}"
|
||||
|
||||
run ~/.config/tmux/plugins/tmux-cpu/cpu.tmux
|
||||
run ~/.config/tmux/plugins/tmux-battery/battery.tmux
|
||||
Reference in New Issue
Block a user