mirror of
https://github.com/FabricSoul/nixos-configs.git
synced 2026-02-03 22:26:24 -05:00
update: config
This commit is contained in:
parent
37cf8c18c3
commit
86acc4b8bd
1 changed files with 34 additions and 7 deletions
|
|
@ -1,14 +1,9 @@
|
||||||
# home/fabric/programs/tmux.nix
|
# home/fabric/programs/tmux.nix
|
||||||
{
|
{pkgs, ...}: {
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = with pkgs.tmuxPlugins; [
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
sensible
|
sensible
|
||||||
onedark-theme
|
|
||||||
vim-tmux-navigator
|
vim-tmux-navigator
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -19,14 +14,46 @@
|
||||||
|
|
||||||
# Custom key bindings
|
# Custom key bindings
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# Set pane base index
|
|
||||||
setw -g pane-base-index 1
|
setw -g pane-base-index 1
|
||||||
|
|
||||||
|
|
||||||
# Vi copy mode bindings
|
# Vi copy mode bindings
|
||||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy"
|
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy"
|
||||||
bind-key P paste-buffer
|
bind-key P paste-buffer
|
||||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy"
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy"
|
||||||
|
set-option -g status-position top
|
||||||
|
|
||||||
|
set -g status-style 'fg=#CDD6F4,bg=default'
|
||||||
|
set -g status-justify centre # Center the window list
|
||||||
|
|
||||||
|
# Remove anything from the left side
|
||||||
|
set -g status-left ' '
|
||||||
|
|
||||||
|
|
||||||
|
# --- WINDOW LIST (CENTERED) ---
|
||||||
|
# Set the style for the active window
|
||||||
|
# We use a bright blue from your theme and make it bold
|
||||||
|
setw -g window-status-current-style 'fg=#89B4FA,bold'
|
||||||
|
# Format for the active window, using a Nerd Font icon
|
||||||
|
setw -g window-status-current-format ' #I-#W '
|
||||||
|
|
||||||
|
# Set the style for inactive windows
|
||||||
|
# We use a muted gray color from your theme
|
||||||
|
setw -g window-status-style 'fg=#585B70'
|
||||||
|
# Format for inactive windows, using a different Nerd Font icon
|
||||||
|
setw -g window-status-format ' #I-#W '
|
||||||
|
|
||||||
|
|
||||||
|
# --- RIGHT SIDE ---
|
||||||
|
# Set the content for the right side of the status bar
|
||||||
|
# is a Nerd Font icon for a computer/host
|
||||||
|
# #H is the placeholder for the hostname
|
||||||
|
set -g status-right ' #H '
|
||||||
|
# Set the max length for the right status bar
|
||||||
|
set -g status-right-length 40
|
||||||
|
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue