From b2b49d1c2fe14d557cefb76dc0face7c898cd28c Mon Sep 17 00:00:00 2001 From: atagen Date: Sat, 27 Aug 2022 22:12:02 +1000 Subject: [PATCH] add some culr --- home/home.nix | 124 ++++++++++++++++++++++++++++++----------- home/homepkgs/culr.nix | 27 +++++++++ 2 files changed, 120 insertions(+), 31 deletions(-) create mode 100644 home/homepkgs/culr.nix diff --git a/home/home.nix b/home/home.nix index 1ce2944..b0efb08 100644 --- a/home/home.nix +++ b/home/home.nix @@ -19,7 +19,7 @@ home.packages = with pkgs; [ kitty thunderbird - + clementine btop @@ -27,7 +27,7 @@ broot fd lazygit - + latte-dock kdeconnect @@ -46,8 +46,9 @@ plasma-browser-integration - (callPackage ./homepkgs/git-credential-keepassxc.nix {}) - + (callPackage ./homepkgs/git-credential-keepassxc.nix { }) + (callPackage ./homepkgs/culr.nix { }) + ]; gtk = { @@ -57,35 +58,35 @@ name = "Arc-Dark"; }; }; - + programs.firefox = - { - package = pkgs.firefox.override { - cfg = { - enablePlasmaBrowserIntegration = true; + { + package = pkgs.firefox.override { + cfg = { + enablePlasmaBrowserIntegration = true; + }; + }; + enable = true; + extensions = with pkgs.nur.repos.rycee.firefox-addons; [ + vimium + darkreader + localcdn + ublock-origin + bypass-paywalls-clean + sidebery + plasma-integration + keepassxc-browser + # arc-dark-theme-we + ]; + profiles.default = { + id = 0; + name = "Default"; + settings = { + "browser.startup.homepage" = "about:blank"; + }; }; }; - enable = true; - extensions = with pkgs.nur.repos.rycee.firefox-addons; [ - vimium - darkreader - localcdn - ublock-origin - bypass-paywalls-clean - sidebery - plasma-integration - keepassxc-browser - # arc-dark-theme-we - ]; - profiles.default = { - id = 0; - name = "Default"; - settings = { - "browser.startup.homepage" = "about:blank"; - }; - }; - }; - + programs.broot = { enable = true; modal = true; @@ -106,6 +107,29 @@ name = "MesloLGS NF Regular"; size = 10; }; + settings = { + foreground = "#d3dae3"; + background = "#181b28"; + cursor = "#d3dae3"; + selection_foreground = "#fdbc4b"; + selection_background = "#1e2233"; + color0 = "#2f343f"; + color8 = "#1e2233"; + color1 = "#ed244e"; + color9 = "#da4453"; + color2 = "#27ae60"; + color10 = "#71f79f"; + color3 = "#f67400"; + color11 = "#fdbc4b"; + color4 = "#2980b9"; + color12 = "#1d99f3"; + color5 = "#c50ed2"; + color13 = "#9b59b6"; + color6 = "#3daee9"; + color14 = "#5294e2"; + color7 = "#a1a9b1"; + color15 = "#a1a9b1"; + }; }; programs.git = { @@ -116,7 +140,7 @@ credential.helper = "keepassxc"; }; }; - + programs.zoxide = { enable = true; enableZshIntegration = true; @@ -180,6 +204,44 @@ ]; }; + xresources.extraConfig = " +! special +*.foreground: #d3dae3 +*.background: #181b28 +*.cursorColor: #d3dae3 + +! black +*.color0: #2f343f +*.color8: #1e2233 + +! red +*.color1: #ed244e +*.color9: #da4453 + +! green +*.color2: #27ae60 +*.color10: #71f79f + +! yellow +*.color3: #f67400 +*.color11: #fdbc4b + +! blue +*.color4: #2980b9 +*.color12: #1d99f3 + +! magenta +*.color5: #c50ed2 +*.color13: #9b59b6 + +! cyan +*.color6: #3daee9 +*.color14: #5294e2 + +! white +*.color7: #a1a9b1 +*.color15: #656a73"; + programs.helix.enable = true; programs.helix.settings = { theme = "bogster"; diff --git a/home/homepkgs/culr.nix b/home/homepkgs/culr.nix new file mode 100644 index 0000000..8f5de51 --- /dev/null +++ b/home/homepkgs/culr.nix @@ -0,0 +1,27 @@ +{ lib, fetchFromGitea, rustPlatform, libX11, pkg-config }: + +rustPlatform.buildRustPackage rec { + pname = "culr"; + version = "0.1.0"; + + src = fetchFromGitea { + domain = "git.atagen.co"; + owner = "atagen"; + repo = pname; + rev = "d5a7fe6df6"; + sha256 = "sha256-S2JwubuVFj/ZXemcJyZv9pAbM0rSi5CauE9vtJBgspw="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ libX11 ]; + + cargoSha256 = "sha256-d8MshgH3EppKR80fULU5kraJzrkG57KApzcJM2muvIE="; + + meta = with lib; { + description = "colourise piped input"; + homepage = "https://git.atagen.co/atagen/culr"; + license = licenses.mit; + maintainers = [ ]; + }; + +}