forked from Shinonome/dots-hyprland
added simpleStarship
This commit is contained in:
@@ -32,6 +32,9 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
imports = lib.optionals cfg.simpleStarship [
|
||||||
|
../terminal/simple-starship.nix
|
||||||
|
];
|
||||||
# programs.hyprland = {
|
# programs.hyprland = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
# package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
# package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||||
@@ -48,7 +51,10 @@ in {
|
|||||||
".config/wlogout".source = builtins.path {path = ../../.config/wlogout;};
|
".config/wlogout".source = builtins.path {path = ../../.config/wlogout;};
|
||||||
".config/Kvantum".source = builtins.path {path = ../../.config/Kvantum;};
|
".config/Kvantum".source = builtins.path {path = ../../.config/Kvantum;};
|
||||||
".config/xdg-desktop-portal".source = builtins.path {path = ../../.config/xdg-desktop-portal;};
|
".config/xdg-desktop-portal".source = builtins.path {path = ../../.config/xdg-desktop-portal;};
|
||||||
".config/starship.toml".source = builtins.path {path = ../../.config/starship.toml;};
|
# ".config/starship.toml".source = builtins.path {path = ../../.config/starship.toml;};
|
||||||
|
".config/starship.toml" = mkIf (!cfg.simpleStarship) {
|
||||||
|
source = builtins.path {path = ../../.config/starship.toml;};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
home.packages =
|
home.packages =
|
||||||
import ../packages.nix {inherit pkgs;}
|
import ../packages.nix {inherit pkgs;}
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
{lib, ...}: {
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
format = lib.concatStrings [
|
||||||
|
"$username"
|
||||||
|
"$hostname"
|
||||||
|
"$directory"
|
||||||
|
"$git_branch"
|
||||||
|
"$git_state"
|
||||||
|
"$git_status"
|
||||||
|
"$cmd_duration"
|
||||||
|
"$line_break"
|
||||||
|
"$python"
|
||||||
|
"$character"
|
||||||
|
];
|
||||||
|
|
||||||
|
directory = {
|
||||||
|
style = "blue";
|
||||||
|
};
|
||||||
|
|
||||||
|
character = {
|
||||||
|
success_symbol = "[→](purple)";
|
||||||
|
error_symbol = "[→](red)";
|
||||||
|
vimcmd_symbol = "[←](green)";
|
||||||
|
};
|
||||||
|
|
||||||
|
git_branch = {
|
||||||
|
format = "[$branch]($style)";
|
||||||
|
style = "bright-black";
|
||||||
|
};
|
||||||
|
git_status = {
|
||||||
|
format = "[(*$conflicted$untracked$modified$staged$renamed$deleted) $ahead_behind$stashed]($style)";
|
||||||
|
style = "cyan";
|
||||||
|
conflicted = "";
|
||||||
|
untracked = "";
|
||||||
|
modified = "";
|
||||||
|
staged = "";
|
||||||
|
renamed = "";
|
||||||
|
deleted = "";
|
||||||
|
stashed = "≡";
|
||||||
|
};
|
||||||
|
git_state = {
|
||||||
|
format = "([$state( $progress_current/$progress_total)]($style)) ";
|
||||||
|
style = "bright-black";
|
||||||
|
};
|
||||||
|
|
||||||
|
cmd_duration = {
|
||||||
|
format = "[$duration]($style) ";
|
||||||
|
style = "yellow";
|
||||||
|
};
|
||||||
|
|
||||||
|
python = {
|
||||||
|
format = "[$virtualenv]($style) ";
|
||||||
|
style = "bright-black";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# home.file.".config/starship.toml" = {
|
||||||
|
# source = builtins.toPath ./pure.toml;
|
||||||
|
# };
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user