Skip to content

Commit

Permalink
feat(tmux): Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
limakzi committed Jan 6, 2025
1 parent e020fcc commit ed2a594
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
| 🗄️`ranger` | [[dot-ranger]](./src/linux/dot-ranger/ranger/) |
| 🚀`starship` | [[dot-starship]](./src/linux/dot-starship/starship/) |
| 📖`zathura` | [[dot-zathura]](./src/linux/dot-zathura/zathura/) |
| 🔲`tmux` | [[dot-tmux]](./src/linux/dot-tmux/tmux/) |
| 🧮`gap` | [[dot-gap]](./src/linux/dot-gap/gap/) |
1 change: 1 addition & 0 deletions dotbot.conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
~/.config/nvim: src/linux/dot-nvim/nvim/
~/.config/ranger: src/linux/dot-ranger/ranger/
~/.config/starship: src/linux/dot-starship/starship/
~/.config/tmux: src/linux/dot-tmux/tmux/
~/.config/zathura: src/linux/dot-zathura/zathura/


Expand Down
46 changes: 46 additions & 0 deletions src/linux/dot-tmux/tmux/tmux.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## {{{1 appearance
set-option -g status-position top
## }}}1

## {{{1 mouse and keyboard
set-option -g mouse on
## }}}1

## {{{1 window, pane and titles
set-option -g base-index 1
set-option -g pane-base-index 1
set-option -g renumber-windows on

set-option -g set-titles on
set-option -g set-titles-string '#T'
set-window-option -g automatic-rename on
## }}}1

## {{{1 keyboard shortcuts

## {{{2 keyboard shortcuts -- tmux reload
bind r 'source-file ~/.config/tmux/tmux.conf; display-message "[tmux]: config reloaded"'
## }}}2

## {{{2 keyboard shortcuts -- window management
bind-key C-t new-window
bind-key C-w kill-window

bind-key '|' 'split-window -hf'
bind-key '-' 'split-window -f'

bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
## }}}2

## }}}1

## {{{1 prefix
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind-key C-z last-window
## }}}1

0 comments on commit ed2a594

Please sign in to comment.