From 78b4da49738b473dc8fbd4542a8669940632cad4 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 10 Oct 2024 03:17:40 +0300 Subject: [PATCH] Wallpaper : Orange deer & some color updates. --- config/Wallpaper.nix | 6 +++--- home/config/nvim/module/config/Highlight.nix | 11 +++++++---- home/config/tmux/module/Copy.nix | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/config/Wallpaper.nix b/config/Wallpaper.nix index 8051259..2e4a046 100644 --- a/config/Wallpaper.nix +++ b/config/Wallpaper.nix @@ -1,7 +1,7 @@ { pkgs, lib, ... }: with lib; let - url = "https://i.imgur.com/Ni17fLc.jpeg"; - sha256 = "0ms6ip1fqpcn55diqjwrgf3km0m3cgbz9cyy1glfhr0rbrvnfhaf"; - forceContrastText = false; + url = "https://i.imgur.com/gYy0mzG.jpeg"; + sha256 = "0pwnq84mdbv8nrarhnbkq77iabwgh7znr0yig3fnshamxl2a3k7k"; + forceContrastText = true; in { options = { module.wallpaper = { diff --git a/home/config/nvim/module/config/Highlight.nix b/home/config/nvim/module/config/Highlight.nix index 6fc4c56..dd2202d 100644 --- a/home/config/nvim/module/config/Highlight.nix +++ b/home/config/nvim/module/config/Highlight.nix @@ -3,7 +3,8 @@ mkHighlight = name: value: ''vim.api.nvim_set_hl(0, "${name}", ${lib.generators.toLua { multiline = false; asBindings = false; } value})''; - selection = { bg = "#${color.bg.regular}"; }; + bg = { bg = "#${color.bg.regular}"; }; + selection = { bg = "#${color.selection}"; fg = "#${color.fg.dark}"; bold = true; }; transparent = { bg = lib.generators.mkLuaInline "clear"; }; in { text = '' @@ -11,10 +12,12 @@ in { group = vim.api.nvim_create_augroup('Color', {}), pattern = "*", callback = function () + -- Backgrounds. + ${mkHighlight "CursorLine" bg} + ${mkHighlight "TelescopeSelection" bg} + -- Selection. - ${mkHighlight "CursorLine" selection} - ${mkHighlight "Visual" selection} - ${mkHighlight "TelescopeSelection" selection} + ${mkHighlight "Visual" selection} -- Transparent. ${mkHighlight "NormalFloat" transparent} diff --git a/home/config/tmux/module/Copy.nix b/home/config/tmux/module/Copy.nix index 5a3902e..cd135b2 100644 --- a/home/config/tmux/module/Copy.nix +++ b/home/config/tmux/module/Copy.nix @@ -1,5 +1,5 @@ { config, ... }: let - fg = config.style.color.bg.dark; + fg = config.style.color.fg.dark; selection = config.style.color.selection; in { text = ''