This commit is contained in:
albert 2024-02-18 18:41:59 +09:00
parent d826481a17
commit 0b6886fb7b
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
2 changed files with 26 additions and 31 deletions

View file

@ -1,7 +1,7 @@
{ ...}: { { lib, ...}: {
programs.rofi = { programs.rofi = {
enable = true; enable = true;
# theme = "material"; # theme = "material";
font = "DejaVu Sans 12"; font = lib.mkForce "DejaVu Sans 12";
}; };
} }

View file

@ -1,11 +1,10 @@
{ config, lib, ... }: { config, lib, ... }:
let let
orangeColor = "#${config.lib.stylix.colors.base0C}"; gitColor = "#${config.lib.stylix.colors.base08}";
yellowColor = "#${config.lib.stylix.colors.base0A}"; hostnameColor = "#${config.lib.stylix.colors.base0A}";
blueColor = "#${config.lib.stylix.colors.base08}"; dirColor = "#${config.lib.stylix.colors.base0C}";
whiteColor = "#${config.lib.stylix.colors.base07}"; timeColor = "#${config.lib.stylix.colors.base00}";
blackColor = "#${config.lib.stylix.colors.base00}"; redColor = "#${config.lib.stylix.colors.base09}";
redColor = "#${config.lib.stylix.colors.base0E}";
in in
{ {
programs.starship = { programs.starship = {
@ -13,56 +12,52 @@ in
enableBashIntegration = true; enableBashIntegration = true;
settings = { settings = {
format = lib.concatStrings [ format = lib.concatStrings [
"[](${whiteColor})" "$os"
"$time" "» "
"[](${whiteColor}) "
"[](${orangeColor})"
"$username" "$username"
"$hostname" "$hostname"
"[](bg:${yellowColor} fg:${orangeColor})" " »"
"$directory" "$directory"
"[](fg:${yellowColor} bg:${blueColor})" " »"
"$git_branch" "$git_branch"
"$git_status" "$git_status"
"$rust" "$rust"
"$docker_context" "$docker_context"
"$nix_shell" "$nix_shell"
"[](fg:${blueColor} bg:${redColor})"
"$status" "$status"
"[ ](fg:${redColor})"
]; ];
username = { username = {
show_always = true; show_always = true;
style_user = "fg:${blackColor} bg:${orangeColor}"; style_user = "fg:${hostnameColor}";
style_root = "fg:${blackColor} bg:${orangeColor}"; style_root = "fg:${hostnameColor}";
format = "[$user]($style)"; format = "[$user]($style)";
disabled = false; disabled = false;
}; };
hostname = { hostname = {
ssh_only = true; ssh_only = true;
style = "fg:${blackColor} bg:${orangeColor}"; style = "fg:${hostnameColor}";
format = "[@$hostname]($style)"; format = "[@$hostname]($style)";
disabled = false; disabled = false;
}; };
os = { os = {
style = "bg:${orangeColor}"; style = "fg:${hostnameColor}";
disabled = true; disabled = false;
}; };
nix_shell = { nix_shell = {
disabled = false; disabled = true;
heuristic = true; heuristic = true;
symbol = " "; symbol = " ";
format = "[$symbol$state(\($name\))]($style)"; format = "[$symbol$state(\($name\))]($style)";
style = "fg:${whiteColor} bg:${blueColor}"; style = "fg:${gitColor}";
}; };
directory = { directory = {
style = "fg:${blackColor} bg:${yellowColor}"; style = "fg:${dirColor}";
format = "[ $path ]($style)"; format = "[ $path ]($style)";
truncation_length = 3; truncation_length = 3;
truncation_symbol = "/"; truncation_symbol = "/";
@ -76,25 +71,25 @@ in
git_branch = { git_branch = {
symbol = ""; symbol = "";
style = "fg:${whiteColor} bg:${blueColor}"; style = "fg:${gitColor}";
format = "[ $symbol $branch ]($style)"; format = "[ $symbol $branch ]($style)";
}; };
git_status = { git_status = {
style = "fg:${whiteColor} bg:${blueColor}"; style = "fg:${gitColor}";
format = "[$all_status$ahead_behind]($style)"; format = "[$all_status$ahead_behind]($style)";
}; };
status = { status = {
style = "fg:${whiteColor} bg:${redColor}"; style = "fg:${redColor}";
format = "[$status ]($style)"; format = "[$status ]($style) » ";
disabled = false; disabled = false;
}; };
time = { time = {
disabled = false; disabled = false;
time_format = "%R"; # Hour:Minute Format time_format = "%R"; # Hour:Minute Format
style = "fg:${blackColor} bg:${whiteColor}"; style = "fg:${timeColor}";
format = "[ $time]($style)"; format = "[ $time]($style)";
}; };
}; };