a lot of work on visuals, overhauled waybar config

This commit is contained in:
pagedmov
2024-10-20 02:18:28 -04:00
parent 740c27ba86
commit 5a1f391af2
11 changed files with 267 additions and 160 deletions

View File

@@ -1,32 +1,14 @@
{
pkgs,
self,
lib,
scheme,
wallpaper,
...
}:
let
wallpaper = "${self}/media/wallpapers/sine.png";
# Generate base16 color scheme from wallpaper
scheme_string_step1 = pkgs.runCommand "scheme_string" { }''
${pkgs.flavours}/bin/flavours generate dark ${wallpaper} --stdout | sed 's/"//g' | sed 's/://' | tail -n 16 > $out
'';
scheme_string = builtins.readFile scheme_string_step1;
scheme_list = lib.filter (x: x != "") (lib.splitString "\n" scheme_string);
scheme_set = lib.lists.foldl' (acc: line:
let
splitLine = lib.splitString " " line;
key = builtins.elemAt splitLine 0;
value = builtins.elemAt splitLine 1;
in
acc // { "${key}" = value; }
) {} scheme_list;
in
{
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/chalk.yaml";
base16Scheme = scheme;
image = wallpaper;
polarity = "dark";
autoEnable = true;
@@ -35,6 +17,9 @@ in
console.enable = true;
feh.enable = true;
grub.enable = true;
gtk.enable = true;
nixos-icons.enable = true;
nixvim.enable = true;
};
cursor = {
package = pkgs.bibata-cursors;