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,
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