beginning of dendritic rebuild
This commit is contained in:
parent
080e929cbc
commit
d924909d3b
56 changed files with 121 additions and 149 deletions
BIN
old/home/resources/avatars/avatar.jpg
Executable file
BIN
old/home/resources/avatars/avatar.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
old/home/resources/btop.png
Normal file
BIN
old/home/resources/btop.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 MiB |
BIN
old/home/resources/desktop.png
Normal file
BIN
old/home/resources/desktop.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
16
old/home/resources/theme/SerenityOS-GTK.nix
Executable file
16
old/home/resources/theme/SerenityOS-GTK.nix
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "$name";
|
||||
src = pkgs.fetchurl {
|
||||
url = "";
|
||||
sha256 = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
${pkgs.unzip}/bin/unzip $src -d $out/
|
||||
'';
|
||||
}
|
||||
48
old/home/resources/theme/SerenityOS.nix
Executable file
48
old/home/resources/theme/SerenityOS.nix
Executable file
|
|
@ -0,0 +1,48 @@
|
|||
{ config, wallpapersPath, wallpaper, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
#./template.nix
|
||||
];
|
||||
|
||||
theme = {
|
||||
wallpaper = "${wallpaper}";
|
||||
lockscreenWallpaper = "${wallpapersPath}/attunement-HelveticaBlanc.png";
|
||||
waybar-transparent = true;
|
||||
font-mono = "spleen 32x64";
|
||||
font = "spleen 32x64";
|
||||
rounding = 18;
|
||||
gaps-in = 4;
|
||||
gaps-out = 8;
|
||||
border-size = 1;
|
||||
|
||||
colors = {
|
||||
bg = "000000";
|
||||
fg = "FCFCFC";
|
||||
alt-bg = "101012";
|
||||
alt-fg = "ECECEC";
|
||||
primary-ansi-16 = "cyan";
|
||||
primary-bg = "00cdff";
|
||||
primary-fg = "000000";
|
||||
secondary-bg = "11222e";
|
||||
secondary-fg = "000000";
|
||||
color0 = "000000";
|
||||
color1 = "f7768e";
|
||||
color2 = "73daca";
|
||||
color3 = "cfb264";
|
||||
color4 = "7a82f7";
|
||||
color5 = "a778F8";
|
||||
color6 = "7dd8ff";
|
||||
color7 = "E4E5E7";
|
||||
color8 = "515878";
|
||||
color9 = "f7869e";
|
||||
color10 = "83eada";
|
||||
color11 = "f0bf78";
|
||||
color12 = "8ab2f7";
|
||||
color13 = "A988F8";
|
||||
color14 = "8ddfff";
|
||||
color15 = "f4f5f7";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
143
old/home/resources/theme/default.nix
Executable file
143
old/home/resources/theme/default.nix
Executable file
|
|
@ -0,0 +1,143 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
./themepkgs.nix # imports declared theme packages
|
||||
];
|
||||
|
||||
## Configurable options for themes
|
||||
options.theme = {
|
||||
|
||||
waybar-transparent = mkOption {
|
||||
type = types.bool;
|
||||
description = "Does waybar have a transparent background?";
|
||||
};
|
||||
|
||||
wallpaper = mkOption {
|
||||
type = types.str;
|
||||
description = "Name of the wallpaper (from the wallpapers directory)";
|
||||
};
|
||||
|
||||
lockscreenWallpaper = mkOption {
|
||||
type = types.str;
|
||||
description = "Name of the lockscreen wallpaper (from the wallpapers directory)";
|
||||
};
|
||||
|
||||
font = mkOption {
|
||||
type = types.str;
|
||||
description = "Default font";
|
||||
};
|
||||
|
||||
font-mono = mkOption {
|
||||
type = types.str;
|
||||
description = "Default mono font";
|
||||
};
|
||||
|
||||
rounding = mkOption {
|
||||
type = types.int;
|
||||
description = "Borders rounding";
|
||||
};
|
||||
|
||||
gaps-in = mkOption {
|
||||
type = types.int;
|
||||
description = "Gaps in";
|
||||
};
|
||||
|
||||
gaps-out = mkOption {
|
||||
type = types.int;
|
||||
description = "Gaps out";
|
||||
};
|
||||
|
||||
border-size = mkOption {
|
||||
type = types.int;
|
||||
description = "Border size";
|
||||
};
|
||||
|
||||
colors = let
|
||||
mkColorOption = name: {
|
||||
inherit name;
|
||||
value = mkOption {
|
||||
type = types.strMatching "[a-fA-F0-9]{6}";
|
||||
description = "Color ${name}.";
|
||||
};
|
||||
};
|
||||
in listToAttrs (map mkColorOption [
|
||||
"bg"
|
||||
"fg"
|
||||
"alt-bg"
|
||||
"alt-fg"
|
||||
"primary-bg"
|
||||
"primary-fg"
|
||||
"secondary-bg"
|
||||
"secondary-fg"
|
||||
"color0"
|
||||
"color1"
|
||||
"color2"
|
||||
"color3"
|
||||
"color4"
|
||||
"color5"
|
||||
"color6"
|
||||
"color7"
|
||||
"color8"
|
||||
"color9"
|
||||
"color10"
|
||||
"color11"
|
||||
"color12"
|
||||
"color13"
|
||||
"color14"
|
||||
"color15"
|
||||
]) // {
|
||||
primary-ansi-16 = mkOption {
|
||||
type = types.str;
|
||||
description =
|
||||
"Name of the primary color - ansi 16 colors (black, red, green, yellow, blue, magenta, cyan, white, bright-black, bright-red, bright-green, bright-yellow, bright-blue, bright-magenta, bright-cyan, bright-white)";
|
||||
};
|
||||
|
||||
primary-ansi-16-number = mkOption {
|
||||
type = types.int;
|
||||
description = "Set the primary color - ansi 16 colors (0-15)";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
config.theme.colors.primary-ansi-16-number =
|
||||
if config.theme.colors.primary-ansi-16 == "black" then
|
||||
0
|
||||
else if config.theme.colors.primary-ansi-16 == "red" then
|
||||
1
|
||||
else if config.theme.colors.primary-ansi-16 == "green" then
|
||||
2
|
||||
else if config.theme.colors.primary-ansi-16 == "yellow" then
|
||||
3
|
||||
else if config.theme.colors.primary-ansi-16 == "blue" then
|
||||
4
|
||||
else if config.theme.colors.primary-ansi-16 == "magenta" then
|
||||
5
|
||||
else if config.theme.colors.primary-ansi-16 == "cyan" then
|
||||
6
|
||||
else if config.theme.colors.primary-ansi-16 == "white" then
|
||||
7
|
||||
else if config.theme.colors.primary-ansi-16 == "bright-white" then
|
||||
8
|
||||
else if config.theme.colors.primary-ansi-16 == "bright-black" then
|
||||
9
|
||||
else if config.theme.colors.primary-ansi-16 == "bright-red" then
|
||||
10
|
||||
else if config.theme.colors.primary-ansi-16 == "bright-green" then
|
||||
11
|
||||
else if config.theme.colors.primary-ansi-16 == "bright-yellow" then
|
||||
12
|
||||
else if config.theme.colors.primary-ansi-16 == "bright-blue" then
|
||||
13
|
||||
else if config.theme.colors.primary-ansi-16 == "bright-magenta" then
|
||||
14
|
||||
else if config.theme.colors.primary-ansi-16 == "bright-cyan" then
|
||||
15
|
||||
else
|
||||
0;
|
||||
|
||||
}
|
||||
16
old/home/resources/theme/serenityos-base.nix
Executable file
16
old/home/resources/theme/serenityos-base.nix
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
{ pkgs }:
|
||||
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "serenityos-base";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "";
|
||||
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
${pkgs.unzip}/bin/unzip $src -d $out/
|
||||
'';
|
||||
}
|
||||
51
old/home/resources/theme/stylix.nix
Executable file
51
old/home/resources/theme/stylix.nix
Executable file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{
|
||||
stylix = {
|
||||
|
||||
# global cursor
|
||||
cursor = {
|
||||
|
||||
};
|
||||
|
||||
# global fonts
|
||||
fonts = {
|
||||
|
||||
};
|
||||
|
||||
# global opacity
|
||||
opacity = {
|
||||
applications = 1.0;
|
||||
terminal = 0.98;
|
||||
desktop = 1.0;
|
||||
popups = 0.98;
|
||||
};
|
||||
|
||||
|
||||
# 'light' or 'dark' or 'either'
|
||||
polarity = "dark";
|
||||
|
||||
# image to generate scheme from
|
||||
image = path/to/wallpaper.img;
|
||||
|
||||
# defined colour scheme
|
||||
base16Scheme = {
|
||||
base 00 = " ";
|
||||
base 01 = " ";
|
||||
base 02 = " ";
|
||||
base 03 = " ";
|
||||
base 04 = " ";
|
||||
base 05 = " ";
|
||||
base 06 = " ";
|
||||
base 07 = " ";
|
||||
base 08 = " ";
|
||||
base 09 = " ";
|
||||
base 0A = " ";
|
||||
base 0B = " ";
|
||||
base 0C = " ";
|
||||
base 0D = " ";
|
||||
base 0E = " ";
|
||||
base 0f = " ";
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
42
old/home/resources/theme/sygil-plymouth.nix
Normal file
42
old/home/resources/theme/sygil-plymouth.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
stdenvNoCC,
|
||||
fetchFromGitea,
|
||||
lib,
|
||||
unstableGitUpdater,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
name = "plymouth-sygil-theme";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "Serenity-F";
|
||||
repo = "sygil-plymouth";
|
||||
rev = "0.2.0";
|
||||
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/plymouth/themes/sygil
|
||||
cp sygil/* $out/share/plymouth/themes/sygil
|
||||
chmod +x $out/share/plymouth/themes/sygil/sygil.plymouth
|
||||
substituteInPlace $out/share/plymouth/themes/sygil/sygil.plymouth \
|
||||
--replace-fail "/usr/" "$out/"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "Animated sygil Plymouth theme.";
|
||||
homepage = "https://codeberg.org/Serenity-F/sygil-plymouth";
|
||||
license = with lib.licenses; [ gpl3Only ];
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ Serenity-F ];
|
||||
};
|
||||
|
||||
}
|
||||
95
old/home/resources/theme/template.nix
Executable file
95
old/home/resources/theme/template.nix
Executable file
|
|
@ -0,0 +1,95 @@
|
|||
{ lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.theme = {
|
||||
|
||||
waybar-transparent = mkOption {
|
||||
type = types.bool;
|
||||
description = "Does waybar have a transparent background?";
|
||||
};
|
||||
|
||||
wallpaper = mkOption {
|
||||
type = types.str;
|
||||
description = "Name of the wallpaper (from the wallpapers directory)";
|
||||
};
|
||||
|
||||
font = mkOption {
|
||||
type = types.str;
|
||||
description = "Default font";
|
||||
};
|
||||
|
||||
font-mono = mkOption {
|
||||
type = types.str;
|
||||
description = "Default mono font";
|
||||
};
|
||||
|
||||
rounding = mkOption {
|
||||
type = types.int;
|
||||
description = "Borders rounding";
|
||||
};
|
||||
|
||||
gaps-in = mkOption {
|
||||
type = types.int;
|
||||
description = "Gaps in";
|
||||
};
|
||||
|
||||
gaps-out = mkOption {
|
||||
type = types.int;
|
||||
description = "Gaps out";
|
||||
};
|
||||
|
||||
border-size = mkOption {
|
||||
type = types.int;
|
||||
description = "Border size";
|
||||
};
|
||||
|
||||
colors = let
|
||||
mkColorOption = name: {
|
||||
inherit name;
|
||||
value = mkOption {
|
||||
type = types.strMatching "[a-fA-F0-9]{6}";
|
||||
description = "Color ${name}.";
|
||||
};
|
||||
};
|
||||
in listToAttrs (map mkColorOption [
|
||||
"bg"
|
||||
"fg"
|
||||
"alt-bg"
|
||||
"alt-fg"
|
||||
"primary-bg"
|
||||
"primary-fg"
|
||||
"secondary-bg"
|
||||
"secondary-fg"
|
||||
"color0"
|
||||
"color1"
|
||||
"color2"
|
||||
"color3"
|
||||
"color4"
|
||||
"color5"
|
||||
"color6"
|
||||
"color7"
|
||||
"color8"
|
||||
"color9"
|
||||
"color10"
|
||||
"color11"
|
||||
"color12"
|
||||
"color13"
|
||||
"color14"
|
||||
"color15"
|
||||
]) // {
|
||||
primary-ansi-16 = mkOption {
|
||||
type = types.str;
|
||||
description =
|
||||
"Name of the primary color - ansi 16 colors (black, red, green, yellow, blue, magenta, cyan, white, bright-black, bright-red, bright-green, bright-yellow, bright-blue, bright-magenta, bright-cyan, bright-white)";
|
||||
};
|
||||
|
||||
primary-ansi-16-number = mkOption {
|
||||
type = types.int;
|
||||
description = "Set the primary color - ansi 16 colors (0-15)";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
16
old/home/resources/theme/themepkgs.nix
Executable file
16
old/home/resources/theme/themepkgs.nix
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
home.packages = with pkgs; [
|
||||
materia-theme-transparent
|
||||
materia-theme
|
||||
colloid-gtk-theme
|
||||
#colloid-kde
|
||||
adapta-gtk-theme
|
||||
adapta-kde-theme
|
||||
gnome-themes-extra
|
||||
materia-theme
|
||||
];
|
||||
|
||||
}
|
||||
BIN
old/home/resources/wallpapers/almondBlossoms-VanGogh.jpg
Executable file
BIN
old/home/resources/wallpapers/almondBlossoms-VanGogh.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 MiB |
BIN
old/home/resources/wallpapers/attunement-HelveticaBlanc.png
Executable file
BIN
old/home/resources/wallpapers/attunement-HelveticaBlanc.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 518 KiB |
Loading…
Add table
Add a link
Reference in a new issue