configuration.nix/home/programs/tmux.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

2023-05-18 16:11:26 +05:30
{pkgs, ...}: {
2023-03-15 22:11:59 +05:30
programs.tmux = {
enable = true;
escapeTime = 0;
plugins = with pkgs; [
{
plugin = tmuxPlugins.dracula;
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'
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}"
'';
};
}