tmux: upated plugins & key bindings
This commit is contained in:
parent
43c29f650d
commit
4745c4f5f7
|
@ -3,7 +3,9 @@
|
|||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
cfg = config.programs.tmux;
|
||||
in {
|
||||
programs = {
|
||||
tmux = {
|
||||
# Terminal multiplexer required by byobu
|
||||
|
@ -11,34 +13,31 @@
|
|||
aggressiveResize = true;
|
||||
clock24 = true;
|
||||
extraConfig = ''
|
||||
#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
|
||||
|
||||
# Plugins
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
set -g @plugin 'dracula/tmux'
|
||||
|
||||
set -g @dracula-show-battery false
|
||||
set -g @dracula-show-powerline true
|
||||
set -g @dracula-refresh-rate 10
|
||||
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
|
||||
|
||||
# Bind home and end keys:
|
||||
bind-key -n Home send Escape "OH"
|
||||
bind-key -n End send Escape "OF"
|
||||
|
||||
# Run tmux plugins in NixOS
|
||||
run-shell ${pkgs.tmuxPlugins.onedark-theme}/share/tmux-plugins/onedark-theme/tmux-onedark-theme.tmux
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
'';
|
||||
keyMode = "vi";
|
||||
newSession = true;
|
||||
shortcut = "a";
|
||||
shortcut = "b";
|
||||
terminal = "screen-256color";
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
powerline
|
||||
tmuxPlugins.continuum
|
||||
tmuxPlugins.dracula
|
||||
tmuxPlugins.onedark-theme
|
||||
tmuxPlugins.resurrect
|
||||
tmuxPlugins.sensible
|
||||
tmuxPlugins.tmux-fzf
|
||||
|
|
Loading…
Reference in a new issue