From 931010f9c854f1f2e7b3c15307b8d251b7f1f3db Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Wed, 20 Apr 2022 12:53:30 +1000 Subject: [PATCH] tmux: switched to One Dark theme --- profiles/tmux.nix | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/profiles/tmux.nix b/profiles/tmux.nix index af32d0a..6570dad 100644 --- a/profiles/tmux.nix +++ b/profiles/tmux.nix @@ -3,7 +3,9 @@ config, pkgs, ... -}: { +}: let + cfg = config.programs.tmux; +in { programs = { tmux = { # Terminal multiplexer required by byobu @@ -11,23 +13,19 @@ 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; @@ -37,8 +35,9 @@ }; environment.systemPackages = with pkgs; [ + powerline tmuxPlugins.continuum - tmuxPlugins.dracula + tmuxPlugins.onedark-theme tmuxPlugins.resurrect tmuxPlugins.sensible tmuxPlugins.tmux-fzf