Adding derivation for sddm theme and adding it to the displaymanager.nix

This commit is contained in:
Tyler Kelley 2024-01-22 23:16:50 -06:00
parent b12dc7a959
commit d6f6c30188
3 changed files with 90 additions and 110 deletions

View File

@ -1,129 +1,87 @@
format = """ [battery]
[](#3B4252)\ full_symbol = "🔋"
$python\ charging_symbol = "🔌"
$username\ discharging_symbol = "⚡"
[](bg:#434C5E fg:#3B4252)\
$directory\
[](fg:#434C5E bg:#4C566A)\
$git_branch\
$git_status\
[](fg:#4C566A bg:#86BBD8)\
$c\
$elixir\
$elm\
$golang\
$haskell\
$java\
$julia\
$nodejs\
$nim\
$rust\
[](fg:#86BBD8 bg:#06969A)\
$docker_context\
[](fg:#06969A bg:#33658A)\
$time\
[ ](fg:#33658A)\
"""
command_timeout = 5000
# Disable the blank line at the start of the prompt
# add_newline = false
# You can also replace your username with a neat symbol like  to save some space [[battery.display]]
[username] threshold = 30
show_always = true style = "bold red"
style_user = "bg:#3B4252"
style_root = "bg:#3B4252" [character]
format = '[$user ]($style)' error_symbol = "[✖](bold red) "
[cmd_duration]
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
format = " took [$duration]($style)"
[directory] [directory]
style = "bg:#434C5E" truncation_length = 5
format = "[ $path ]($style)" format = "[$path]($style)[$lock_symbol]($lock_style) "
truncation_length = 3
truncation_symbol = "…/"
# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
[directory.substitutions]
"Documents" = " "
"Downloads" = " "
"Music" = " "
"Pictures" = " "
# Keep in mind that the order matters. For example:
# "Important Documents" = "  "
# will not be replaced, because "Documents" was already substituted before.
# So either put "Important Documents" before "Documents" or use the substituted version:
# "Important  " = "  "
[c]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[docker_context]
symbol = " "
style = "bg:#06969A"
format = '[ $symbol $context ]($style) $path'
[elixir]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[elm]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[git_branch] [git_branch]
symbol = "" format = " [$symbol$branch]($style) "
style = "bg:#4C566A" symbol = "🍣 "
format = '[ $symbol $branch ]($style)' style = "bold yellow"
[git_commit]
commit_hash_length = 8
style = "bold white"
[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style) '
[git_status] [git_status]
style = "bg:#4C566A" conflicted = "⚔️ "
format = '[$all_status$ahead_behind ]($style)' ahead = "🏎️ 💨 ×${count}"
behind = "🐢 ×${count}"
diverged = "🔱 🏎️ 💨 ×${ahead_count} 🐢 ×${behind_count}"
untracked = "🛤️ ×${count}"
stashed = "📦 "
modified = "📝 ×${count}"
staged = "🗃️ ×${count}"
renamed = "📛 ×${count}"
deleted = "🗑️ ×${count}"
style = "bright-white"
format = "$all_status$ahead_behind"
[golang] [hostname]
symbol = " " ssh_only = false
style = "bg:#86BBD8" format = "<[$hostname]($style)>"
format = '[ $symbol ($version) ]($style)' trim_at = "-"
style = "bold dimmed white"
[haskell] disabled = true
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[java]
symbol = " "
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[julia] [julia]
symbol = " " format = "[$symbol$version]($style) "
style = "bg:#86BBD8" symbol = "ஃ "
format = '[ $symbol ($version) ]($style)' style = "bold green"
[nodejs] [memory_usage]
symbol = "" format = "$symbol[${ram}( | ${swap})]($style) "
style = "bg:#86BBD8" threshold = 70
format = '[ $symbol ($version) ]($style)' style = "bold dimmed white"
disabled = false
[nim] [package]
symbol = " " disabled = true
style = "bg:#86BBD8"
format = '[ $symbol ($version) ]($style)'
[python] [python]
style = "bg:#3B4252" format = "[$symbol$version]($style) "
format = '[(\($virtualenv\) )]($style)' style = "bold green"
[rust] [rust]
symbol = "" format = "[$symbol$version]($style) "
style = "bg:#86BBD8" style = "bold green"
format = '[ $symbol ($version) ]($style)'
[time] [time]
time_format = "%T"
format = "🕙 $time($style) "
style = "bright-white"
disabled = false disabled = false
time_format = "%R" # Hour:Minute Format
style = "bg:#33658A" [username]
format = '[ $time ]($style)' style_user = "bold dimmed blue"
show_always = false
[nodejs]
format = "via [🤖 $version](bold green) "

View File

@ -0,0 +1,18 @@
{ stdenv, fetchFromGitHub }:
{
sddm-sugar-dark = stdenv.mkDerivation rec {
pname = "sddm-sugar-dark-theme";
version = "1.2";
dontBuild = true;
installPhase = ''
mkdir -p $out/share/sddm/themes
cp -aR $src $out/share/sddm/themes/sugar-dark
'';
src = fetchFromGitHub {
owner = "MarianArlt";
repo = "sddm-sugar-dark";
rev = "v${version}";
sha256 = "0gx0am7vq1ywaw2rm1p015x90b75ccqxnb1sz3wy8yjl27v82yhb";
};
};
}

View File

@ -12,4 +12,8 @@
wayland.enable = true; wayland.enable = true;
}; };
}; };
environment.systemPackages = let themes = pkgs.callPackage ../pkgs/sddm-sugar-dark.nix {}; in [
themes.sddm-sugar-dark
];
} }