Configure System Monitor colors
This commit is contained in:
parent
d0ce918d0e
commit
d26fe5409a
5 changed files with 45 additions and 2 deletions
|
@ -1,7 +1,15 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (builtins) mapAttrs;
|
||||
inherit (config) host;
|
||||
inherit (lib) concatStringsSep imap0;
|
||||
inherit (lib.generators) toKeyValue;
|
||||
inherit (lib.hm.gvariant) mkTuple mkUint32;
|
||||
|
||||
palette = import ../resources/palette.nix;
|
||||
|
||||
mkRgb = components: "rgb(${concatStringsSep "," (map toString components)})";
|
||||
|
||||
toTOML = (pkgs.formats.toml { }).generate;
|
||||
in
|
||||
|
@ -148,6 +156,20 @@ in
|
|||
};
|
||||
xdg.configFile."gdu/gdu.yaml".text = "no-cross: true";
|
||||
home.file.".npmrc".text = toKeyValue { } { fund = false; update-notifier = false; };
|
||||
dconf.settings."org/gnome/gnome-system-monitor" = with (mapAttrs (k: mkRgb) palette.components); {
|
||||
cpu-colors = imap0 (i: c: mkTuple [ (mkUint32 i) c ]) (
|
||||
{
|
||||
"6" = [ red orange yellow green blue purple ];
|
||||
"8" = [ red orange-red orange yellow green teal blue purple ];
|
||||
"12" = [ red alt-red orange alt-orange yellow alt-yellow green alt-green blue alt-blue purple alt-purple ];
|
||||
"16" = [ red alt-red orange-red alt-orange-red orange alt-orange yellow alt-yellow green alt-green teal alt-teal blue alt-blue purple alt-purple ];
|
||||
}."${toString host.cores}"
|
||||
);
|
||||
mem-color = orange;
|
||||
swap-color = purple;
|
||||
net-in-color = blue;
|
||||
net-out-color = red;
|
||||
};
|
||||
home.file.".visidatarc".text = with pkgs; toKeyValue { } {
|
||||
"options.clipboard_copy_cmd" = "${wl-clipboard}/bin/wl-copy";
|
||||
"options.clipboard_paste_cmd" = "${wl-clipboard}/bin/wl-paste --no-newline";
|
||||
|
|
|
@ -15,6 +15,14 @@
|
|||
teal = "#29e0b4";
|
||||
|
||||
# Derived
|
||||
alt-blue = "#5ac1d5";
|
||||
alt-green = "#93c928";
|
||||
alt-orange = "#e1851a";
|
||||
alt-orange-red = "#dd4915";
|
||||
alt-purple = "#9f60ff";
|
||||
alt-red = "#d71b60";
|
||||
alt-teal = "#23c7a0";
|
||||
alt-yellow = "#cdc367";
|
||||
dark-gray = "#3a3a3a";
|
||||
dark-purple = "#634994";
|
||||
dark-red = "#c4265e";
|
||||
|
@ -33,5 +41,15 @@
|
|||
# Extended
|
||||
orange-red = [ 252 91 45 ];
|
||||
teal = [ 41 224 180 ];
|
||||
|
||||
# Derived
|
||||
alt-blue = [ 90 193 213 ];
|
||||
alt-green = [ 147 201 40 ];
|
||||
alt-orange = [ 225 133 26 ];
|
||||
alt-orange-red = [ 221 73 21 ];
|
||||
alt-purple = [ 159 96 255 ];
|
||||
alt-red = [ 215 27 96 ];
|
||||
alt-teal = [ 35 199 160 ];
|
||||
alt-yellow = [ 205 195 103 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
let
|
||||
inherit (lib) mkOption;
|
||||
inherit (lib.types) path str;
|
||||
inherit (lib.types) int path str;
|
||||
|
||||
identity = import ./resources/identity.nix;
|
||||
in
|
||||
|
@ -29,6 +29,7 @@ in
|
|||
|
||||
options.host = {
|
||||
background = mkOption { type = str; };
|
||||
cores = mkOption { type = int; };
|
||||
firefoxProfile = mkOption { type = str; };
|
||||
local = mkOption { type = path; };
|
||||
};
|
||||
|
|
|
@ -16,6 +16,7 @@ in
|
|||
# Host parameters
|
||||
host = {
|
||||
background = "file://${./resources/background.jpg}";
|
||||
cores = 16;
|
||||
firefoxProfile = "ahrdm58c.default";
|
||||
local = ./local;
|
||||
};
|
||||
|
|
|
@ -22,6 +22,7 @@ in
|
|||
# Host parameters
|
||||
host = {
|
||||
background = "file://${./resources/background.jpg}";
|
||||
cores = 16;
|
||||
firefoxProfile = "f2y424q1.default";
|
||||
local = ./local;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue