nixos-config/home/tmux.nix

72 lines
3 KiB
Nix
Raw Normal View History

2024-12-19 02:32:58 -05:00
{ pkgs, ... }:
{
programs.tmux = {
enable = true;
baseIndex = 1;
historyLimit = 50000;
keyMode = "emacs";
mouse = false;
plugins = with pkgs.tmuxPlugins; [
yank
{
plugin = resurrect;
extraConfig = "set -g @resurrect-capture-pane-contents 'on'";
}
{
plugin = continuum;
extraConfig = "set -g @continnum-restore 'on'";
}
];
prefix = "C-f";
sensibleOnTop = true;
2024-12-21 15:14:48 -05:00
terminal = "foot";
extraConfig = ''
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind u attach-session -c "#{pane_current_path}"
bind v split-window -c "#{pane_current_path}" -h
bind s split-window -c "#{pane_current_path}" -v
2024-12-25 04:12:26 -05:00
# FILE: iceberg.tmux.conf
# REPO: https://github.com/gkeep/iceberg-dark
# MAINTAINER: gkeep <gkeep77@protonmail.com>
set -g status-justify "centre"
set -g status "on"
2024-12-25 04:12:26 -05:00
set -g status-left-style "none"
set -g message-command-style "fg=#c6c8d1,bg=#2e3244"
set -g status-right-style "none"
set -g pane-active-border-style "fg=#454b68"
set -g status-style "none,bg=#1e2132"
set -g message-style "fg=#c6c8d1,bg=#2e3244"
set -g pane-border-style "fg=#2e3244"
set -g status-right-length "100"
2024-12-25 04:12:26 -05:00
set -g status-left-length "100"
setw -g window-status-activity-style "none,fg=#454b68,bg=#1e2132"
setw -g window-status-separator ""
2024-12-25 04:12:26 -05:00
setw -g window-status-style "none,fg=#c6c8d1,bg=#1e2132"
# modules
module_left_1="#(whoami)"
module_left_2="%R %a"
module_right_1="#(ip route get 1 | awk '{print $7}')"
module_right_2="#H"
# separators
separator_left="\ue0bc"
separator_right="\ue0ba"
subseparator_left="\ue0bb"
subseparator_right="\ue0bd"
set -g status-left "#[fg=#c6c8d1,bg=#454b68,bold] $module_left_1 #[fg=#454b68,bg=#2e3244,nobold,nounderscore,noitalics]$separator_left#[fg=#c6c8d1,bg=#2e3244] $module_left_2 #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left#[fg=#c6c8d1,bg=#1e2132] #[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left"
set -g status-right "#[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1,bg=#1e2132] #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1,bg=#2e3244] $module_right_1 #[fg=#454b68,bg=#2e3244,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1,bg=#454b68,bold] $module_right_2 #{prefix_highlight}"
setw -g window-status-format "#[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1] #I $subseparator_right #W $subseparator_left#[fg=#1e2132,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right"
setw -g window-status-current-format "#[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]$separator_right#[fg=#c6c8d1,bg=#2e3244] #I $subseparator_right #W $subseparator_left #F #[fg=#2e3244,bg=#1e2132,nobold,nounderscore,noitalics]$separator_left"
'';
};
}