Moved tmux theming from nvim module to tmux module
This commit is contained in:
parent
2ad5af4f90
commit
a656b8f481
5 changed files with 13 additions and 25 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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!"
|
|
@ -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]"
|
|
@ -1,19 +1,19 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.aa.home;
|
||||
}: let
|
||||
inherit (lib) mkAliasDefinitions mkOption;
|
||||
inherit (lib.types) attrs;
|
||||
in {
|
||||
imports = with inputs; [
|
||||
home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
options.aa.home = with types; {
|
||||
options.${namespace}.home = {
|
||||
file = mkOption {
|
||||
type = attrs;
|
||||
default = {};
|
||||
|
@ -37,7 +37,7 @@ in {
|
|||
};
|
||||
|
||||
config = {
|
||||
aa.home.extraOptions = {
|
||||
${namespace}.home.extraOptions = {
|
||||
home.stateVersion = config.system.stateVersion;
|
||||
home.file = mkAliasDefinitions options.aa.home.file;
|
||||
xdg = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue