2023-11-04 16:12:45 +05:30
|
|
|
{ pkgs, ... }: {
|
2023-03-15 22:11:59 +05:30
|
|
|
programs.tmux = {
|
|
|
|
enable = true;
|
2024-03-05 21:45:55 +05:30
|
|
|
clock24 = true;
|
2023-03-15 22:11:59 +05:30
|
|
|
escapeTime = 0;
|
2024-03-05 21:45:55 +05:30
|
|
|
plugins = with pkgs.tmuxPlugins; [
|
2023-03-15 22:11:59 +05:30
|
|
|
{
|
2024-03-05 21:45:55 +05:30
|
|
|
plugin = dracula;
|
2023-03-15 22:11:59 +05:30
|
|
|
extraConfig = ''
|
|
|
|
set -g @dracula-show-powerline true
|
|
|
|
set -g @dracula-plugins "time"
|
|
|
|
set -g @dracula-show-timezone false
|
|
|
|
set -g @dracula-day-month true
|
|
|
|
set -g @dracula-show-flags true
|
|
|
|
set -g @dracula-show-left-icon session
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
extraConfig = ''
|
2023-04-06 03:40:57 +05:30
|
|
|
set -g update-environment 'TERM DISPLAY WAYLAND_DISPLAY SWAYSOCK HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP'
|
2023-03-15 22:11:59 +05:30
|
|
|
if "[[ ''${TERM} =~ 256color || ''${TERM} == xterm-kitty || ''${TERM} == fbterm ]]" 'set -g default-terminal tmux-256color'
|
2023-06-04 13:52:38 +05:30
|
|
|
set-option -sa terminal-features ',xterm-kitty:RGB'
|
2023-03-15 22:11:59 +05:30
|
|
|
set -g allow-rename on
|
|
|
|
set -g set-titles on
|
|
|
|
set -g set-titles-string "#W"
|
|
|
|
set -g automatic-rename on
|
|
|
|
set -g automatic-rename-format '(#{b:pane_current_path}) #{pane_current_command}'
|
|
|
|
set -g status-position top
|
|
|
|
set -g status-interval 1
|
|
|
|
set -g mouse on
|
|
|
|
|
|
|
|
set -g monitor-activity on
|
|
|
|
set -g monitor-bell on
|
|
|
|
set -g visual-activity on
|
|
|
|
set -g visual-bell on
|
|
|
|
|
2023-03-21 01:03:14 +05:30
|
|
|
set -g renumber-windows on
|
2023-03-15 22:11:59 +05:30
|
|
|
set -g base-index 1
|
|
|
|
setw -g pane-base-index 1
|
|
|
|
|
|
|
|
bind - split-window -v -c "#{pane_current_path}"
|
|
|
|
bind \\ split-window -h -c "#{pane_current_path}"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|