Mon Jun 3 06:01:26 PM CEST 2024
This commit is contained in:
parent
08c59af817
commit
03f89ffbda
|
@ -1,30 +0,0 @@
|
||||||
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.local/share/tmux/plugins'
|
|
||||||
|
|
||||||
set-window-option -g mode-keys vi
|
|
||||||
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
||||||
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
|
||||||
|
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
|
||||||
bind - split-window -v -c "#{pane_current_path}"
|
|
||||||
bind c new-window -c "#{pane_current_path}"
|
|
||||||
unbind '"'
|
|
||||||
unbind %
|
|
||||||
|
|
||||||
set -g mouse on
|
|
||||||
set -g @themepack 'powerline/double/blue'
|
|
||||||
set-option -g xterm-keys on
|
|
||||||
|
|
||||||
set-window-option -g status-left " #S "
|
|
||||||
set-window-option -g status-right " #{prefix_highlight} \"#(hostname)\" %H:%M %d-%b-%y "
|
|
||||||
set-window-option -g window-status-format " #I: #W "
|
|
||||||
set-window-option -g window-status-current-format " #I: #W "
|
|
||||||
|
|
||||||
# Plugins (Keep this last)
|
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
|
||||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
|
||||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
||||||
set -g @plugin 'jimeh/tmux-themepack'
|
|
||||||
run '~/.local/share/tmux/plugins/tpm/tpm'
|
|
||||||
|
|
||||||
set -g default-shell /bin/zsh
|
|
||||||
set-option -sa terminal-overrides ',screen-256color:RGB'
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
{ inputs, config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./zsh ./git ./nvim ./email ./lf ./tmux ];
|
imports = [ ./zsh ./git ./nvim ./email ./lf ];
|
||||||
|
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
targets.genericLinux.enable = true;
|
targets.genericLinux.enable = true;
|
||||||
|
|
|
@ -1,5 +1,19 @@
|
||||||
{ inputs, config, pkgs, ... }:
|
{ inputs, config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
tmux-themepack = pkgs.tmuxPlugins.mkTmuxPlugin {
|
||||||
|
pluginName = "tmux-themepack";
|
||||||
|
rtpFilePath = "themepack.tmux";
|
||||||
|
version = "unstable-2019-12-22";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "jimeh";
|
||||||
|
repo = "tmux-themepack";
|
||||||
|
rev = "7c59902f64dcd7ea356e891274b21144d1ea5948";
|
||||||
|
sha256 = "sha256-c5EGBrKcrqHWTKpCEhxYfxPeERFrbTuDfcQhsUAbic4=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
shell = "${pkgs.zsh}/bin/zsh";
|
shell = "${pkgs.zsh}/bin/zsh";
|
||||||
|
@ -9,15 +23,36 @@
|
||||||
shortcut = "a";
|
shortcut = "a";
|
||||||
escapeTime = 0;
|
escapeTime = 0;
|
||||||
newSession = true;
|
newSession = true;
|
||||||
|
mouse = true;
|
||||||
|
keyMode = "vi";
|
||||||
plugins = [
|
plugins = [
|
||||||
pkgs.tmuxPlugins.vim-tmux-navigator
|
pkgs.tmuxPlugins.vim-tmux-navigator
|
||||||
pkgs.tmuxPlugins.better-mouse-mode
|
pkgs.tmuxPlugins.better-mouse-mode
|
||||||
pkgs.tmuxPlugins.yank
|
pkgs.tmuxPlugins.yank
|
||||||
{
|
{
|
||||||
plugin = pkgs.tmuxPlugins.power-theme;
|
plugin = tmux-themepack;
|
||||||
extraConfig = "set -g @tmux_power_theme 'forest'";
|
extraConfig = ''
|
||||||
|
set -g @themepack "powerline/double/blue"
|
||||||
|
set-window-option -g status-left " #S "
|
||||||
|
set-window-option -g status-right " #{prefix_highlight} \"#(hostname)\" %H:%M %d-%b-%y "
|
||||||
|
set-window-option -g window-status-format " #I: #W "
|
||||||
|
set-window-option -g window-status-current-format " #I: #W "
|
||||||
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
extraConfig = ''
|
||||||
|
set-window-option -g mode-keys vi
|
||||||
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||||
|
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
||||||
|
|
||||||
|
bind | split-window -h -c "#{pane_current_path}"
|
||||||
|
bind - split-window -v -c "#{pane_current_path}"
|
||||||
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
unbind '"'
|
||||||
|
unbind %
|
||||||
|
|
||||||
|
set-option -g xterm-keys on
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue