Compare commits
No commits in common. "Typecraft" and "LearnLinuxTV" have entirely different histories.
Typecraft
...
LearnLinux
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
plugins/*
|
||||
@ -1,7 +0,0 @@
|
||||
# Used plugins
|
||||
- https://github.com/tmux-plugins/tpm(tmux plugin manager)
|
||||
- https://github.com/catppuccin/tmux (colour scheme)
|
||||
- https://github.com/christoomey/vim-tmux-navigator (nvim integration)
|
||||
|
||||
# Used tutorials
|
||||
- [YT TypeCraft](https://www.youtube.com/watch?v=jaI3Hcw-ZaA)
|
||||
@ -1 +0,0 @@
|
||||
Subproject commit 2c4cb5a07a3e133ce6d5382db1ab541a0216ddc7
|
||||
@ -1 +0,0 @@
|
||||
Subproject commit 99469c4a9b1ccf77fade25842dc7bafbc8ce9946
|
||||
115
tmux.conf
115
tmux.conf
@ -1,44 +1,97 @@
|
||||
unbind r
|
||||
bind r source-file /home/godot/.config/tmux/tmux.conf
|
||||
## LEARN LINUX TV
|
||||
|
||||
#set -g prefix C-s
|
||||
# Initial setup
|
||||
set -g default-terminal xterm-256color
|
||||
set -g status-keys vi
|
||||
|
||||
# Use C-j and C-f for the frefix
|
||||
set-option -g prefix C-j
|
||||
set-option -g prefix2 C-f
|
||||
unbind-key C-j
|
||||
bind-key C-j send-prefix
|
||||
set -g base-index 1
|
||||
|
||||
# Use Alt-arow keys without prefix key to switch panels
|
||||
bind -n M-Left select-pane -L
|
||||
bind -n M-Right select-pane -R
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Down select-pane -D
|
||||
|
||||
# Set easier window split key
|
||||
bind-key v split-window -h
|
||||
bind-key h split-window -v
|
||||
|
||||
# Shift arrow to switch windows
|
||||
bind -n S-Left previous-window
|
||||
bind -n S-Right next-window
|
||||
|
||||
# Easily reorder windows with CTRL SHIFT ARROW
|
||||
bind-key -n C-S-Left swap-window -t -1
|
||||
bind-key -n C-S-Right swap-window -t +1
|
||||
|
||||
# Synchronize panes
|
||||
bind-key y set-window-option synchronize-panes\; display-message "synchronize mode toggled."
|
||||
|
||||
# Easy config reload
|
||||
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
|
||||
|
||||
# Easy clear history
|
||||
bind-key L clear-history
|
||||
|
||||
# Key bindings for copy-paste
|
||||
setw -g mode-keys vi
|
||||
unbind p
|
||||
bind p paste-buffer
|
||||
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
||||
|
||||
# Mouse Mode
|
||||
set -g mouse on
|
||||
|
||||
bind-key h select-pane -L
|
||||
bind-key j select-pane -D
|
||||
bind-key k select-pane -U
|
||||
bind-key l select-pane -R
|
||||
# Lengthen the amount of time status messages are displayed
|
||||
set-option -g display-time 3000
|
||||
set-option -g display-panes-time 3000
|
||||
|
||||
# List of plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'catppuccin/tmux'
|
||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||
# Set the base-index to 1 rather than 0
|
||||
set -g base-index 1
|
||||
set-window-option -g pane-base-index 1
|
||||
|
||||
# catppuccin config
|
||||
# Automatically set window title
|
||||
set-window-option -g automatic-rename on
|
||||
set-option -g set-titles on
|
||||
|
||||
#set -g @catppuccin_window_left_separator ""
|
||||
#set -g @catppuccin_window_right_separator " "
|
||||
#set -g @catppuccin_window_middle_separator " █"
|
||||
set -g @catppuccin_window_number_position "right"
|
||||
# Allow the arrow key to be used immediately after changing windows.
|
||||
set-option -g repeat-time 0
|
||||
|
||||
set -g @catppuccin_window_default_fill "number"
|
||||
set -g @catppuccin_window_default_text "#W"
|
||||
# No delay for escape key press
|
||||
set -sg escape-time 0
|
||||
|
||||
set -g @catppuccin_window_current_fill "number"
|
||||
set -g @catppuccin_window_current_text "#W"
|
||||
# Disable bell
|
||||
setw -g monitor-bell off
|
||||
|
||||
set -g @catppuccin_status_modules_right "directory user host session"
|
||||
set -g @catppuccin_status_left_separator " "
|
||||
set -g @catppuccin_status_right_separator ""
|
||||
set -g @catppuccin_status_fill "icon"
|
||||
set -g @catppuccin_status_connect_separator "no"
|
||||
# Disable visual text box when activity occurs
|
||||
set -g visual-activity off
|
||||
|
||||
set -g @catppuccin_directory_text "#{pane_current_path}"
|
||||
|
||||
# Autoinstall plugins
|
||||
if "test ! -d ~/.config/tmux/plugins/tpm" \
|
||||
"run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm && ~/.config/tmux/plugins/tpm/bin/install_plugins'"
|
||||
## MINE
|
||||
|
||||
# Runs TMUX plugin manager (have to be on the bottom of config)
|
||||
run '~/.config/tmux/plugins/tpm/tpm'
|
||||
# Bar
|
||||
set-option -g status-position top
|
||||
|
||||
|
||||
# Status Bar
|
||||
#set -g status-justify centre
|
||||
#set -g status-bg black
|
||||
#set -g status-fg colour35
|
||||
#set -g status-interval 60
|
||||
#set -g status-left-length 50
|
||||
#set -g status-left "#[bg=colour35]💻#[fg=colour234,bold] #H#[bg=colour34]#[bg=colour35,nobold]#[fg=colour234] [#S] $tmux_target_lower"
|
||||
#set -g status-right '#[bg=colour35] 🕔 #[fg=colour234,bold]%H:%M '
|
||||
|
||||
# Theme
|
||||
#set-window-option -g window-status-current-style bold,bg=blue,fg=colour234
|
||||
#set-window-option -g window-status-style fg=colour35
|
||||
#set -g window-status-activity-style bold,bg=colour234,fg=white
|
||||
#set-option -g message-style bg=colour237,fg=colour231
|
||||
#set-option -g pane-border-style fg=colour36
|
||||
#set-option -g pane-active-border-style fg=colour35
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user