Colorscheme and wallpaper config improvements

This commit is contained in:
Agatha Lovelace 2023-06-19 19:16:14 +02:00
parent c3cdc74c8a
commit a2185ada67
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
14 changed files with 100 additions and 37 deletions

View File

@ -7,12 +7,25 @@
"xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Scrolling Pixel Distance' 10" "xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Scrolling Pixel Distance' 10"
"setxkbmap" "setxkbmap"
]; ];
extraConfig = lib.strings.concatStringsSep "\n" extraConfig = let
[ "nitrogen --set-zoom-fill ${../../../external/6.png}" ]; startOnce = procs: map (v: "! pgrep ${v} && ${v} &") procs;
startup = startOnce [
"firefox"
"element-desktop"
"telegram-desktop"
"spotify"
"geary"
];
in lib.strings.concatStringsSep "\n" ([
"nitrogen --set-zoom-fill ${
config.environment.graphical.colorschemes."${config.environment.graphical.theme.name}".image
}"
] ++ startup);
monitors = { eDP-1 = [ "I" "II" "III" "IV" "V" "VI" "VII" "VIII" ]; }; monitors = { eDP-1 = [ "I" "II" "III" "IV" "V" "VI" "VII" "VIII" ]; };
settings = let settings = let
color = n: color = n:
config.environment.graphical.colors.purple."${builtins.toString n}"; config.environment.graphical.colors."${config.environment.graphical.theme.name}"."${builtins.toString
n}";
in { in {
border_width = 3; border_width = 3;
window_gap = 15; window_gap = 15;
@ -43,8 +56,6 @@
"Yubico Authenticator".state = "floating"; "Yubico Authenticator".state = "floating";
"firefox:Places".state = "floating"; "firefox:Places".state = "floating";
}; };
startupPrograms =
[ "firefox" "element-desktop" "telegram-desktop" "spotify" "geary" ];
}; };
services.sxhkd = { services.sxhkd = {

View File

@ -21,7 +21,9 @@
clipmenu clipmenu
colmena colmena
element-desktop element-desktop
ffmpeg
flameshot flameshot
gimp
glib glib
gnome.eog gnome.eog
gnome.file-roller gnome.file-roller
@ -129,20 +131,39 @@
source = pkgs.fetchgit { source = pkgs.fetchgit {
url = "https://github.com/ZorinOS/zorin-desktop-themes.git"; url = "https://github.com/ZorinOS/zorin-desktop-themes.git";
rev = "6708d5148545c6d9a99712f63b5efe5a5c0eb2d9"; rev = "6708d5148545c6d9a99712f63b5efe5a5c0eb2d9";
sha256 = "sha256-4wLkBIAPX1UfYxfKeNx9DhCNDwbZ25ezp/d+GGQTECc="; sha256 = "sha256-3KEPP39dCr0ZjyqbAb/isoGdeiySDTvHL9k4oxcw19M=";
sparseCheckout = [ "ZorinPurple-Dark" ]; sparseCheckout = [ "ZorinPurple-Dark" "ZorinPurple-Light" ];
}; };
}; };
gtk = {
enable = true;
theme.name = if config.environment.graphical.theme.light then
"ZorinPurple-Light"
else
"ZorinPurple-Dark";
};
programs.direnv.enable = true; programs.direnv.enable = true;
home.sessionVariables = { "DIRENV_LOG_FORMAT" = ""; }; home.sessionVariables = { "DIRENV_LOG_FORMAT" = ""; };
}; };
environment.graphical.colorschemes.purple = { environment.graphical.colorschemes = {
image = ../../../external/6.png; purple = {
params = [ "--lighten" "0.05" "--bold-delta" "0.1" ]; image = ../../../external/the_reliquary.png;
params = [ "--lighten" "0.05" "--bold-delta" "0.1" ];
};
purple-light = {
image = ../../../external/the_reliquary.png;
params = [ "--light" "--bold-delta" "0.2" "--saturate" "0.1" ];
};
blue = { image = ../../../external/blue.jpg; };
dark = { image = ../../../external/the_falls_by_night.jpg; };
}; };
environment.graphical.theme.name = "dark";
services.gvfs.enable = true; services.gvfs.enable = true;
security.polkit.enable = true; security.polkit.enable = true;
programs.dconf.enable = true; programs.dconf.enable = true;
@ -176,6 +197,7 @@
(nerdfonts.override { fonts = [ "DaddyTimeMono" "NerdFontsSymbolsOnly" ]; }) (nerdfonts.override { fonts = [ "DaddyTimeMono" "NerdFontsSymbolsOnly" ]; })
cantarell-fonts cantarell-fonts
cm_unicode cm_unicode
corefonts
crimson crimson
dejavu_fonts dejavu_fonts
fira-code fira-code

View File

@ -1,7 +1,8 @@
{ lib, pkgs, config, ... }: { lib, pkgs, config, ... }:
let let
color = n: color = n:
config.environment.graphical.colors.purple."${builtins.toString n}"; config.environment.graphical.colors."${config.environment.graphical.theme.name}"."${builtins.toString
n}";
in { in {
home-manager.users.agatha = { home-manager.users.agatha = {
services.dunst = { services.dunst = {

View File

@ -1,7 +1,8 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
color = n: color = n:
config.environment.graphical.colors.purple."${builtins.toString n}"; config.environment.graphical.colors."${config.environment.graphical.theme.name}"."${builtins.toString
n}";
in { in {
home-manager.users.agatha = { home-manager.users.agatha = {
programs.kitty = { programs.kitty = {
@ -40,7 +41,7 @@ in {
foreground = color 15; foreground = color 15;
background = color 0; background = color 0;
cursor = color 16; cursor = color 15;
color0 = color 0; color0 = color 0;
color8 = color 8; color8 = color 8;

View File

@ -27,7 +27,8 @@
settings = let settings = let
color = n: color = n:
config.environment.graphical.colors.purple."${builtins.toString n}"; config.environment.graphical.colors."${config.environment.graphical.theme.name}"."${builtins.toString
n}";
in { in {
"colors" = { "colors" = {
background = color 0; background = color 0;

View File

@ -1,7 +1,8 @@
{ lib, pkgs, config, ... }: { lib, pkgs, config, ... }:
let let
color = n: color = n:
config.environment.graphical.colors.purple."${builtins.toString n}"; config.environment.graphical.colors."${config.environment.graphical.theme.name}"."${builtins.toString
n}";
in { in {
home-manager.users.agatha = { home-manager.users.agatha = {
programs.rofi = { programs.rofi = {

View File

@ -15,7 +15,10 @@
}]; }];
}; };
settings = { settings = {
theme = "paramount-dark"; theme = if config.environment.graphical.theme.light then
"paramount-light"
else
"paramount-dark";
editor = { editor = {
middle-click-paste = false; middle-click-paste = false;
scroll-lines = 4; scroll-lines = 4;

19
common/options.nix Normal file
View File

@ -0,0 +1,19 @@
{ lib, config, ... }: {
options = {
environment.graphical.theme = with lib; {
name = mkOption { type = types.str; };
light = mkOption {
default = false;
type = types.bool;
};
};
};
config = let
theme =
config.environment.graphical.colorschemes."${config.environment.graphical.theme.name}";
in {
environment.graphical.theme.light = builtins.elem "--light" theme.params
|| builtins.elem "-l" theme.params;
};
}

BIN
external/blue.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

3
external/credits.txt vendored Normal file
View File

@ -0,0 +1,3 @@
the_reliquary.png: The Reliquary by Pete Amachree
blue.jpg: ???
the_falls_by_night.jpg: Jungle Waterfall by Mark J. Ferrari

BIN
external/the_falls_by_night.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

Before

Width:  |  Height:  |  Size: 6.7 MiB

After

Width:  |  Height:  |  Size: 6.7 MiB

View File

@ -28,11 +28,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1682020898, "lastModified": 1686221213,
"narHash": "sha256-XYSSFmqIjsvmgusWaOSD/WeaTyH8o83i+qma1BQgARU=", "narHash": "sha256-9Uc1jBc5a3EaOH80P6YPILL+GXlul7lEJIKAZ/BXELw=",
"owner": "AgathaSorceress", "owner": "AgathaSorceress",
"repo": "colorpickle", "repo": "colorpickle",
"rev": "2574b83cb0454a146a0346bf0d6a134d62241e60", "rev": "d1c210c494c0eaf69426ec411c2cf74c79b0129d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -265,11 +265,11 @@
"systems": "systems_4" "systems": "systems_4"
}, },
"locked": { "locked": {
"lastModified": 1681202837, "lastModified": 1685518550,
"narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=", "narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "cfacdce06f30d2b68473a46042957675eebb3401", "rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -306,11 +306,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1685487437, "lastModified": 1686498407,
"narHash": "sha256-hxcl/seMmFtFhr2Nv/bBEEVgcFSyrvE2MLMtQJtG9nM=", "narHash": "sha256-M4l3FheaCkxyp2W01K0gM2B32gpvlyW6+3B53v0H98o=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "d511122279b3b479362830305f4812f096273b6a", "rev": "18e07addfd464844fc18833cfb1d1cd38c683c11",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -552,11 +552,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1685561376, "lastModified": 1686398752,
"narHash": "sha256-uIcJdaovXr55FJdmvR6yIN6IWoOL4amBj56e/T2KhgM=", "narHash": "sha256-nGWNQVhSw4VSL+S0D0cbrNR9vs9Bq7rlYR+1K5f5j6w=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "bc3ec5eaa759d58e9fb1bdc9cfe94f74d0331b31", "rev": "a30520bf8eabf8a5c37889d661e67a2dbcaa59e6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -720,11 +720,11 @@
}, },
"nixpkgs_8": { "nixpkgs_8": {
"locked": { "locked": {
"lastModified": 1685533922, "lastModified": 1686331006,
"narHash": "sha256-y4FCQpYafMQ42l1V+NUrMel9RtFtZo59PzdzflKR/lo=", "narHash": "sha256-hElRDWUNG655aqF0awu+h5cmDN+I/dQcChRt2tGuGGU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3a70dd92993182f8e514700ccf5b1ae9fc8a3b8d", "rev": "85bcb95aa83be667e562e781e9d186c57a07d757",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -735,11 +735,11 @@
}, },
"nixpkgs_9": { "nixpkgs_9": {
"locked": { "locked": {
"lastModified": 1684385584, "lastModified": 1686020360,
"narHash": "sha256-O7y0gK8OLIDqz+LaHJJyeu09IGiXlZIS3+JgEzGmmJA=", "narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "48a0fb7aab511df92a17cf239c37f2bd2ec9ae3a", "rev": "4729ffac6fd12e26e5a8de002781ffc49b0e94b7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -832,11 +832,11 @@
"nixpkgs": "nixpkgs_9" "nixpkgs": "nixpkgs_9"
}, },
"locked": { "locked": {
"lastModified": 1684872357, "lastModified": 1686173678,
"narHash": "sha256-10NR2inbTZnD2XfAtZ55+T8nOZo5e0TWUg3667APHco=", "narHash": "sha256-aYzl34xb3u9I57sqkvSldQKltCnxhjvvLABjgFRxOVE=",
"owner": "the-argus", "owner": "the-argus",
"repo": "spicetify-nix", "repo": "spicetify-nix",
"rev": "16022e436ab3fe28ff8b5272a36fcadc0845b060", "rev": "f024752b691ac2dcb2ad378d72a2e3084ce83b79",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -86,6 +86,7 @@
imports = [ imports = [
./common ./common
./hosts/ritual/configuration.nix ./hosts/ritual/configuration.nix
./common/options.nix
(import "${home-manager}/nixos") (import "${home-manager}/nixos")
url-eater.nixosModule url-eater.nixosModule
colorpickle.nixosModules.default colorpickle.nixosModules.default