mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-25 08:03:09 +01:00
Adding derivation for sddm theme and adding it to the displaymanager.nix
This commit is contained in:
parent
b12dc7a959
commit
d6f6c30188
@ -1,129 +1,87 @@
|
||||
format = """
|
||||
[](#3B4252)\
|
||||
$python\
|
||||
$username\
|
||||
[](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
|
||||
[battery]
|
||||
full_symbol = "🔋"
|
||||
charging_symbol = "🔌"
|
||||
discharging_symbol = "⚡"
|
||||
|
||||
# You can also replace your username with a neat symbol like to save some space
|
||||
[username]
|
||||
show_always = true
|
||||
style_user = "bg:#3B4252"
|
||||
style_root = "bg:#3B4252"
|
||||
format = '[$user ]($style)'
|
||||
[[battery.display]]
|
||||
threshold = 30
|
||||
style = "bold red"
|
||||
|
||||
[character]
|
||||
error_symbol = "[✖](bold red) "
|
||||
|
||||
[cmd_duration]
|
||||
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
|
||||
format = " took [$duration]($style)"
|
||||
|
||||
[directory]
|
||||
style = "bg:#434C5E"
|
||||
format = "[ $path ]($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)'
|
||||
truncation_length = 5
|
||||
format = "[$path]($style)[$lock_symbol]($lock_style) "
|
||||
|
||||
[git_branch]
|
||||
symbol = ""
|
||||
style = "bg:#4C566A"
|
||||
format = '[ $symbol $branch ]($style)'
|
||||
format = " [$symbol$branch]($style) "
|
||||
symbol = "🍣 "
|
||||
style = "bold yellow"
|
||||
|
||||
[git_commit]
|
||||
commit_hash_length = 8
|
||||
style = "bold white"
|
||||
|
||||
[git_state]
|
||||
format = '[\($state( $progress_current of $progress_total)\)]($style) '
|
||||
|
||||
[git_status]
|
||||
style = "bg:#4C566A"
|
||||
format = '[$all_status$ahead_behind ]($style)'
|
||||
conflicted = "⚔️ "
|
||||
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]
|
||||
symbol = " "
|
||||
style = "bg:#86BBD8"
|
||||
format = '[ $symbol ($version) ]($style)'
|
||||
|
||||
[haskell]
|
||||
symbol = " "
|
||||
style = "bg:#86BBD8"
|
||||
format = '[ $symbol ($version) ]($style)'
|
||||
|
||||
[java]
|
||||
symbol = " "
|
||||
style = "bg:#86BBD8"
|
||||
format = '[ $symbol ($version) ]($style)'
|
||||
[hostname]
|
||||
ssh_only = false
|
||||
format = "<[$hostname]($style)>"
|
||||
trim_at = "-"
|
||||
style = "bold dimmed white"
|
||||
disabled = true
|
||||
|
||||
[julia]
|
||||
symbol = " "
|
||||
style = "bg:#86BBD8"
|
||||
format = '[ $symbol ($version) ]($style)'
|
||||
format = "[$symbol$version]($style) "
|
||||
symbol = "ஃ "
|
||||
style = "bold green"
|
||||
|
||||
[nodejs]
|
||||
symbol = ""
|
||||
style = "bg:#86BBD8"
|
||||
format = '[ $symbol ($version) ]($style)'
|
||||
[memory_usage]
|
||||
format = "$symbol[${ram}( | ${swap})]($style) "
|
||||
threshold = 70
|
||||
style = "bold dimmed white"
|
||||
disabled = false
|
||||
|
||||
[nim]
|
||||
symbol = " "
|
||||
style = "bg:#86BBD8"
|
||||
format = '[ $symbol ($version) ]($style)'
|
||||
[package]
|
||||
disabled = true
|
||||
|
||||
[python]
|
||||
style = "bg:#3B4252"
|
||||
format = '[(\($virtualenv\) )]($style)'
|
||||
format = "[$symbol$version]($style) "
|
||||
style = "bold green"
|
||||
|
||||
[rust]
|
||||
symbol = ""
|
||||
style = "bg:#86BBD8"
|
||||
format = '[ $symbol ($version) ]($style)'
|
||||
format = "[$symbol$version]($style) "
|
||||
style = "bold green"
|
||||
|
||||
[time]
|
||||
time_format = "%T"
|
||||
format = "🕙 $time($style) "
|
||||
style = "bright-white"
|
||||
disabled = false
|
||||
time_format = "%R" # Hour:Minute Format
|
||||
style = "bg:#33658A"
|
||||
format = '[ $time ]($style)'
|
||||
|
||||
[username]
|
||||
style_user = "bold dimmed blue"
|
||||
show_always = false
|
||||
|
||||
[nodejs]
|
||||
format = "via [🤖 $version](bold green) "
|
||||
|
18
config/pkgs/sddm-sugar-dark.nix
Normal file
18
config/pkgs/sddm-sugar-dark.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
@ -12,4 +12,8 @@
|
||||
wayland.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = let themes = pkgs.callPackage ../pkgs/sddm-sugar-dark.nix {}; in [
|
||||
themes.sddm-sugar-dark
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user