tmux: switched to One Dark theme

This commit is contained in:
Serĉanto de Scio 2022-04-20 12:53:30 +10:00
parent 41e81bdfa8
commit 931010f9c8
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -3,7 +3,9 @@
config, config,
pkgs, pkgs,
... ...
}: { }: let
cfg = config.programs.tmux;
in {
programs = { programs = {
tmux = { tmux = {
# Terminal multiplexer required by byobu # Terminal multiplexer required by byobu
@ -11,23 +13,19 @@
aggressiveResize = true; aggressiveResize = true;
clock24 = true; clock24 = true;
extraConfig = '' extraConfig = ''
#POWERLINE_COMMAND="/run/current-system/sw/bin/powerline" POWERLINE_COMMAND="/run/current-system/sw/bin/powerline"
#POWERLINE_CONFIG_COMMAND="/run/current-system/sw/bin/powerline-config" POWERLINE_CONFIG_COMMAND="/run/current-system/sw/bin/powerline-config"
#run-shell "/run/current-system/sw/bin/powerline-daemon -q" run-shell "/run/current-system/sw/bin/powerline-daemon -q"
#source /run/current-system/sw/share/tmux/powerline.conf 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
# Bind home and end keys: # Bind home and end keys:
bind-key -n Home send Escape "OH" bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF" 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"; keyMode = "vi";
newSession = true; newSession = true;
@ -37,8 +35,9 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
powerline
tmuxPlugins.continuum tmuxPlugins.continuum
tmuxPlugins.dracula tmuxPlugins.onedark-theme
tmuxPlugins.resurrect tmuxPlugins.resurrect
tmuxPlugins.sensible tmuxPlugins.sensible
tmuxPlugins.tmux-fzf tmuxPlugins.tmux-fzf