mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
tmux: nixify
This commit is contained in:
parent
a2a1d02c4e
commit
db78fc2289
3 changed files with 66 additions and 3 deletions
|
|
@ -8,5 +8,5 @@ bind -r H resize-pane -L 5
|
||||||
bind -r J resize-pane -D 5
|
bind -r J resize-pane -D 5
|
||||||
bind -r K resize-pane -U 5
|
bind -r K resize-pane -U 5
|
||||||
bind -r L resize-pane -R 5
|
bind -r L resize-pane -R 5
|
||||||
bind C-h select-window -t :-
|
# bind C-h select-window -t :-
|
||||||
bind C-l select-window -t :+
|
# bind C-l select-window -t :+
|
||||||
|
|
|
||||||
56
nixcfgs/users/js0ny/programs/tmux.nix
Normal file
56
nixcfgs/users/js0ny/programs/tmux.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
prefix = "C-q";
|
||||||
|
shortcut = "q";
|
||||||
|
keyMode = "vi";
|
||||||
|
historyLimit = 10000;
|
||||||
|
mouse = true;
|
||||||
|
baseIndex = 1;
|
||||||
|
resizeAmount = 5;
|
||||||
|
terminal = "tmux-256color";
|
||||||
|
tmuxp.enable = true;
|
||||||
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
|
pain-control
|
||||||
|
yank
|
||||||
|
extrakto
|
||||||
|
tmux-which-key
|
||||||
|
{
|
||||||
|
plugin = resurrect;
|
||||||
|
extraConfig = ''
|
||||||
|
set -g @resurrect-strategy-nvim 'session'
|
||||||
|
|
||||||
|
set -g @resurrect-capture-pane-contents 'on'
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
{
|
||||||
|
plugin = continuum;
|
||||||
|
extraConfig = ''
|
||||||
|
set -g @continuum-restore 'on'
|
||||||
|
|
||||||
|
set -g @continuum-save-interval '15'
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
extraConfig = ''
|
||||||
|
### General Options
|
||||||
|
### -----------------------------------------------
|
||||||
|
set-option -g default-terminal "tmux-256color"
|
||||||
|
set-option -g allow-rename on
|
||||||
|
set-option -g alternate-screen on
|
||||||
|
set-option -g visual-activity on
|
||||||
|
# set-option -g pane-border-style fg=colour244
|
||||||
|
|
||||||
|
### Windows Management
|
||||||
|
### -----------------------------------------------
|
||||||
|
bind c new-window
|
||||||
|
unbind '"'
|
||||||
|
unbind %
|
||||||
|
bind ` resize-pane -Z
|
||||||
|
|
||||||
|
# use pain-control map
|
||||||
|
# bind C-h select-window -t :-
|
||||||
|
# bind C-l select-window -t :+
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
# Personal Program
|
# Personal Program
|
||||||
./programs/chromium.nix
|
./programs/chromium.nix
|
||||||
./programs/firefox
|
./programs/firefox
|
||||||
./programs/emacs.nix
|
# ./programs/emacs.nix
|
||||||
./programs/vscode.nix
|
./programs/vscode.nix
|
||||||
./programs/xilinx.nix
|
./programs/xilinx.nix
|
||||||
./programs/mime.nix
|
./programs/mime.nix
|
||||||
|
|
@ -50,6 +50,8 @@
|
||||||
./programs/obs-studio.nix
|
./programs/obs-studio.nix
|
||||||
./programs/ghostty.nix
|
./programs/ghostty.nix
|
||||||
./programs/obsidian
|
./programs/obsidian
|
||||||
|
./programs/aichat.nix
|
||||||
|
./programs/tmux.nix
|
||||||
|
|
||||||
# Desktop Linux
|
# Desktop Linux
|
||||||
./programs/desktop/plasma
|
./programs/desktop/plasma
|
||||||
|
|
@ -79,5 +81,10 @@
|
||||||
keyboardBacklightStep = "1";
|
keyboardBacklightStep = "1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.configFile."libvirt/libvirt.conf" = {
|
||||||
|
text = ''uri_default = "qemu:///system"'';
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
home.stateVersion = "25.05";
|
home.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue