mio-ops/profiles/tmux.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

2020-01-07 01:00:06 +00:00
# Common configuration for Tmux users
{ config, pkgs, ... }:
{
programs = {
tmux = { # Terminal multiplexer required by byobu
enable = true;
aggressiveResize = true;
clock24 = true;
2020-04-21 08:23:43 +00:00
extraConfig = ''
2021-08-07 06:32:17 +00:00
#POWERLINE_COMMAND="/run/current-system/sw/bin/powerline"
#POWERLINE_CONFIG_COMMAND="/run/current-system/sw/bin/powerline-config"
#run-shell "/run/current-system/sw/bin/powerline-daemon -q"
#source /run/current-system/sw/share/tmux/powerline.conf
2020-01-07 01:00:06 +00:00
2020-12-31 02:07:53 +00:00
# Plugins
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
2021-08-07 06:32:17 +00:00
set -g @plugin 'dracula/tmux'
set -g @dracula-show-battery false
set -g @dracula-show-powerline true
set -g @dracula-refresh-rate 10
2020-12-31 02:07:53 +00:00
2020-06-04 07:23:10 +00:00
# Bind home and end keys:
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
2020-01-07 01:00:06 +00:00
'';
2020-12-31 02:07:53 +00:00
keyMode = "vi";
newSession = true;
shortcut = "b";
2020-12-31 02:07:53 +00:00
terminal = "screen-256color";
2020-01-07 01:00:06 +00:00
};
};
environment.systemPackages = with pkgs; [
2020-12-31 02:07:53 +00:00
tmuxPlugins.continuum
2021-08-07 06:32:17 +00:00
tmuxPlugins.dracula
tmuxPlugins.resurrect
tmuxPlugins.sensible
tmuxPlugins.tmux-fzf
tmuxPlugins.yank
2020-01-07 01:00:06 +00:00
];
}