Moved tmux theming from nvim module to tmux module

This commit is contained in:
alejandro-angulo 2024-07-28 23:23:20 -07:00
parent 2ad5af4f90
commit a656b8f481
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
5 changed files with 13 additions and 25 deletions

View file

@ -3,25 +3,16 @@
lib,
pkgs,
...
}:
with lib; let
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.aa.apps.neovim;
in {
options.aa.apps.neovim = with types; {
options.aa.apps.neovim = {
enable = mkEnableOption "neovim";
tmuxThemePath = mkOption {
type = str;
default = "vim-tmuxline/tmux_theme";
description = "Where to store tmux theme generated by vim-tmuxline";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [neovim];
aa.home.dataFile = {
${cfg.tmuxThemePath}.source = ./tmux_theme;
};
};
}

View file

@ -1,6 +0,0 @@
#!/usr/bin/env bash
# Generates a tmux statusline theme based off the theme in neovim
# May require some edits
nvim -c ":Tmuxline vim_statusline_1 | TmuxlineSnapshot! $(dirname "$0")/tmux_theme | qa!"

View file

@ -1,22 +0,0 @@
# This tmux statusbar config was created by tmuxline.vim
# on Sun, 02 Apr 2023
# Some modifications made by hand
set -g status-justify "left"
set -g status "on"
set -g status-left-style "none"
set -g message-command-style "fg=#a89984,bg=#504945"
set -g status-right-style "none"
set -g pane-active-border-style "fg=#504945"
set -g status-style "none,bg=#32302f"
set -g message-style "fg=#a89984,bg=#504945"
set -g pane-border-style "fg=#32302f"
set -g status-right-length "100"
set -g status-left-length "100"
setw -g window-status-activity-style "none"
setw -g window-status-separator ""
setw -g window-status-style "none,fg=#928374,bg=#32302f"
set -g status-left "#[fg=#928374,bg=#32302f] #S #[fg=#32302f,bg=#32302f,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=#32302f,bg=#32302f,nobold,nounderscore,noitalics]#[fg=#928374,bg=#32302f] %Y-%m-%d  %H:%M #[fg=#32302f,bg=#32302f,nobold,nounderscore,noitalics]#[fg=#928374,bg=#32302f] #h "
setw -g window-status-format "#[fg=#928374,bg=#32302f] #I )#[fg=#928374,bg=#32302f] #W "
setw -g window-status-current-format "#[fg=#32302f,bg=#504945,nobold,nounderscore,noitalics]#[fg=#a89984,bg=#504945] #I #[fg=#a89984,bg=#504945] #W #[fg=#504945,bg=#32302f,nobold,nounderscore,noitalics]"