Fuzzel : Style with Stylix.

This commit is contained in:
Dmitry Voronin 2024-06-23 01:02:11 +03:00
parent ad58a9e915
commit d7b209fb76
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
5 changed files with 22 additions and 13 deletions

View file

@ -41,8 +41,8 @@ in {
name = "Noto Color Emoji"; name = "Noto Color Emoji";
}; };
}; };
override = if wallpaper.forceWhiteText then { override = if wallpaper.forceContrastText then {
base04 = "ffffff"; base04 = "000000";
base05 = "ffffff"; base05 = "ffffff";
base06 = "ffffff"; base06 = "ffffff";
} else {}; } else {};

View file

@ -75,7 +75,7 @@
}; };
window = { window = {
gap = 8; gap = 12;
border = 4; border = 4;
}; };
} }

View file

@ -1,12 +1,12 @@
{ pkgs, ... }: let { pkgs, ... }: let
url = "https://i.imgur.com/uxNas3C.jpeg"; url = "https://i.imgur.com/CrX0Grv.png";
sha256 = "sha256-OxixfSixKYDhNx2vxGV5fLeGrHHV1uXS4MJHLnCIFZs="; sha256 = "sha256-b9kHrg+EtLCQvIgpvv4hFp79jswAurntty3YnFKr5j0=";
# Sometimes stylix does not generate enough contrast for text. # Sometimes stylix does not generate enough contrast for text.
# This setting forces white text to ensure contrast on dark backgrounds. # This setting forces white text to ensure contrast on dark backgrounds.
forceWhiteText = false; forceContrastText = true;
in { in {
inherit forceWhiteText; inherit forceContrastText;
path = pkgs.fetchurl { path = pkgs.fetchurl {
url = url; url = url;

View file

@ -3,18 +3,27 @@
in { in {
file = (pkgs.formats.ini {}).generate "FuzzelConfig" { file = (pkgs.formats.ini {}).generate "FuzzelConfig" {
main = { main = {
font = "${style.font.serif.name}:size=${toString style.font.size.popup}";
dpi-aware = dpiAware; dpi-aware = dpiAware;
font = "${style.font.serif.name}:size=${toString style.font.size.popup}";
lines = 20;
prompt = "\"$ \"";
show-actions = "yes"; show-actions = "yes";
terminal = setting.terminal; terminal = setting.terminal;
list-executables-in-path = "no"; width = 40;
lines = 20; # list-executables-in-path = "no";
width = 40;
# prompt = "\"$ \""
}; };
border = { border = {
radius = 0; radius = 0;
width = 1; width = 1;
}; };
colors = {
background = style.color.bg.dark + style.opacity.hex;
border = style.color.border + style.opacity.hex;
match = style.color.fg.light + style.opacity.hex;
selection = style.color.bg.light + style.opacity.hex;
selection-match = style.color.fg.dark + style.opacity.hex;
selection-text = style.color.fg.dark + style.opacity.hex;
text = style.color.fg.light + style.opacity.hex;
};
}; };
} }

View file

@ -5,7 +5,7 @@ in {
globalSection = { globalSection = {
anchor = "top-center"; anchor = "top-center";
background-color = "#${style.color.bg.dark}${alpha}"; background-color = "#${style.color.bg.dark}${alpha}";
border-color = "#${style.color.bg.regular}${alpha}"; border-color = "#${style.color.border}${alpha}";
default-timeout = setting.popup.timeout.ms; default-timeout = setting.popup.timeout.ms;
font = "${style.font.serif.name} ${toString style.font.size.popup}"; font = "${style.font.serif.name} ${toString style.font.size.popup}";
height = 120; height = 120;