diff options
| author | moorenix <nicholasvmoore@gmail.com> | 2025-05-15 07:30:01 -0500 |
|---|---|---|
| committer | Nick Moore <nicholasvmoore@gmail.com> | 2025-10-29 07:38:18 -0500 |
| commit | 0b125b350a98c38c751e4fc40e0b7412c03e0aff (patch) | |
| tree | 8b07d02d1ba4dc75ad4f935a555a5ecb75f24d84 /tmux | |
| parent | b66e4efa7caae614335c694275133ef42384a98a (diff) | |
Adding window rules
Diffstat (limited to 'tmux')
| m--------- | tmux/.config/tmux/plugins/tmux | 0 | ||||
| m--------- | tmux/.config/tmux/plugins/tmux-resurrect | 0 | ||||
| m--------- | tmux/.config/tmux/plugins/tmux-sensible | 0 | ||||
| m--------- | tmux/.config/tmux/plugins/tpm | 0 | ||||
| -rw-r--r-- | tmux/.config/tmux/tmux.conf | 69 | ||||
| m--------- | tmux/plugins/tmux-battery | 0 | ||||
| -rw-r--r-- | tmux/tmux.conf | 60 |
7 files changed, 69 insertions, 60 deletions
diff --git a/tmux/.config/tmux/plugins/tmux b/tmux/.config/tmux/plugins/tmux new file mode 160000 +Subproject d85b2658c4f199720408f91f869591ae3a0704b diff --git a/tmux/.config/tmux/plugins/tmux-resurrect b/tmux/.config/tmux/plugins/tmux-resurrect new file mode 160000 +Subproject cff343cf9e81983d3da0c8562b01616f12e8d54 diff --git a/tmux/.config/tmux/plugins/tmux-sensible b/tmux/.config/tmux/plugins/tmux-sensible new file mode 160000 +Subproject 25cb91f42d020f675bb0a2ce3fbd3a5d96119ef diff --git a/tmux/.config/tmux/plugins/tpm b/tmux/.config/tmux/plugins/tpm new file mode 160000 +Subproject 99469c4a9b1ccf77fade25842dc7bafbc8ce994 diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf new file mode 100644 index 0000000..479dfb9 --- /dev/null +++ b/tmux/.config/tmux/tmux.conf @@ -0,0 +1,69 @@ +# Set terminal colors +set-option -sa terminal-overrides ",xterm*:Tc" + +#set-option -g status-style bg=default +#set-option -g status-justify left +#set-option -g status-left-length 50 +#set-option -g status-interval 2 +#set-option -g status-left '[ #[fg=white,bright]#h ] #[default]' +#set-option -g status-right-length 80 +#set-option -g status-right '[ #($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load -a 1 --interval 2) | #{battery_percentage} #{battery_remain} | #[fg=white,bright]%m/%d %H:%M #[fg=default]]' +#set-window-option -g window-status-current-format '#[fg=red,bg=default]( #[fg=white,bright,bg=default]#I:#W#[fg=red,nobright,bg=default] )#[fg=default]' +set -as terminal-features ",alacritty*:RGB" +source /usr/share/powerline/bindings/tmux/powerline.conf + +set -g mouse on +set -g base-index 1 +set -g pane-base-index 1 + +# Map prefix to A +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +unbind % +bind | split-window -h + +unbind '"' +bind - split-window -v + +set-window-option -g mode-keys vi +bind -T copy-mode-vi v send-keys -X begin-selection +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' + +# vim-like pane switching +bind -r ^ last-window +bind -r k select-pane -U +bind -r j select-pane -D +bind -r h select-pane -L +bind -r l select-pane -R + +# vim-linke pane resizing +bind -r K resize-pane -U 5 +bind -r J resize-pane -D 5 +bind -r H resize-pane -L 5 +bind -r L resize-pane -R 5 +bind -r m resize-pane -Z + +bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v" +bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y" + +unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode when dragging with mouse + +# List of plugins +set -g @tpm_plugins ' \ + tmux-plugins/tpm \ + tmux-plugins/tmux-sensible \ + tmux-plugins/tmux-resurrect \ + git@github.com:dracula/tmux \ + ' + # thewtex/tmux-mem-cpu-load \ + # tmux-plugins/tmux-battery \ +#' + +set -g @dracula-plugins "cpu-usage battery time" +set -g @dracula-show-powerline true +set -g @dracula-battery-label " " +set -g @dracula-refresh-rate 1 + +run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm' diff --git a/tmux/plugins/tmux-battery b/tmux/plugins/tmux-battery deleted file mode 160000 -Subproject 48fae59ba4503cf345d25e4e66d79685aa3ceb7 diff --git a/tmux/tmux.conf b/tmux/tmux.conf deleted file mode 100644 index 2acbb83..0000000 --- a/tmux/tmux.conf +++ /dev/null @@ -1,60 +0,0 @@ -# Set terminal colors -set-option -sa terminal-overrides ",xterm*:Tc" - -set-option -g status-style bg=default -set-option -g status-justify left -set-option -g status-left-length 50 -set-option -g status-interval 2 -set-option -g status-left '[ #[fg=white,bright]#h ] #[default]' -set-option -g status-right-length 80 -set-option -g status-right '[ #($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load -a 1 --interval 2) | #{battery_percentage} #{battery_remain} | #[fg=white,bright]%m/%d %H:%M #[fg=default]]' -set-window-option -g window-status-current-format '#[fg=red,bg=default]( #[fg=white,bright,bg=default]#I:#W#[fg=red,nobright,bg=default] )#[fg=default]' - -set -g mouse on -set -g base-index 1 -set -g pane-base-index 1 - -# Map prefix to A -unbind C-b -set-option -g prefix C-a -bind-key C-a send-prefix - -unbind % -bind | split-window -h - -unbind '"' -bind - split-window -v - -set-window-option -g mode-keys vi -bind -T copy-mode-vi v send-keys -X begin-selection -bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' - -# vim-like pane switching -bind -r ^ last-window -bind -r k select-pane -U -bind -r j select-pane -D -bind -r h select-pane -L -bind -r l select-pane -R - -# vim-linke pane resizing -bind -r K resize-pane -U 5 -bind -r J resize-pane -D 5 -bind -r H resize-pane -L 5 -bind -r L resize-pane -R 5 -bind -r m resize-pane -Z - -bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v" -bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y" - -unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode when dragging with mouse - -# List of plugins -set -g @tpm_plugins ' \ - tmux-plugins/tpm \ - tmux-plugins/tmux-sensible \ - tmux-plugins/tmux-resurrect \ - thewtex/tmux-mem-cpu-load \ - tmux-plugins/tmux-battery \ -' - -run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm' |
