From dcd90c497e01b303c05794fcbb4e8b4bde52bc0d Mon Sep 17 00:00:00 2001 From: andrey_varnavskiy Date: Mon, 16 Dec 2024 04:42:44 +0500 Subject: [PATCH] some tweaks --- home-manager/modules/stylix.nix | 56 +++++++++++++++++++++++++ home-manager/modules/swaync/default.nix | 40 +++++++++++++----- 2 files changed, 85 insertions(+), 11 deletions(-) create mode 100644 home-manager/modules/stylix.nix diff --git a/home-manager/modules/stylix.nix b/home-manager/modules/stylix.nix new file mode 100644 index 0000000..398e12a --- /dev/null +++ b/home-manager/modules/stylix.nix @@ -0,0 +1,56 @@ +{ pkgs, inputs, ... }: { + imports = [ inputs.stylix.homeManagerModules.stylix ]; + stylix = { + enable = true; + polarity = "dark"; + # base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-material-dark-medium.yaml"; + base16Scheme = { + # base00 = "#282828"; + # base01 = "#cc241d"; + # base02 = "#98971a"; + # base03 = "#d79921"; + # base04 = "#458588"; + # base05 = "#b16286"; + # base06 = "#689d6a"; + # base07 = "#a89984"; + # base08 = "#928374"; + # base09 = "#fb4934"; + # base0A = "#b8bb26"; + # base0B = "#fabd2f"; + # base0C = "#83a598"; + # base0D = "#d3869b"; + # base0E = "#8ec07c"; + # base0F = "#ebdbb2"; + # }; + base00 = "#282828"; # ---- + base01 = "#3c3836"; # --- + base02 = "#504945"; # -- + base03 = "#665c54"; # - + base04 = "#bdae93"; # + + base05 = "#d5c4a1"; # ++ + base06 = "#ebdbb2"; # +++ + base07 = "#fbf1c7"; # ++++ + base08 = "#fb4934"; # red + base09 = "#fe8019"; # orange + base0A = "#fabd2f"; # yellow + base0B = "#b8bb26"; # green + base0C = "#8ec07c"; # aqua/cyan + base0D = "#83a598"; # blue + base0E = "#d3869b"; # purple + base0F = "#d65d0e"; # brown + }; + + targets = { + neovim.enable = false; + waybar.enable = false; + wofi.enable = false; + hyprlock.enable = false; + }; + + # This doesn't work and idk why + image = pkgs.fetchurl { + url = "hhttps://codeberg.org/lunik1/nixos-logo-gruvbox-wallpaper/raw/branch/master/png/gruvbox-dark-rainbow.pngttps://codeberg.org/lunik1/nixos-logo-gruvbox-wallpaper/raw/branch/master/png/gruvbox-dark-rainbow.png"; + sha256 = "036gqhbf6s5ddgvfbgn6iqbzgizssyf7820m5815b2gd748jw8zc"; + }; + }; +} diff --git a/home-manager/modules/swaync/default.nix b/home-manager/modules/swaync/default.nix index a9e748a..98ad39d 100644 --- a/home-manager/modules/swaync/default.nix +++ b/home-manager/modules/swaync/default.nix @@ -4,21 +4,39 @@ settings = { positionX = "right"; positionY = "top"; - layer = "overlay"; - control-center-layer = "top"; + control-center-radius = 1; + fit-to-screen = true; layer-shell = true; - cssPriority = "application"; - control-center-margin-top = 0; - control-center-margin-bottom = 0; - control-center-margin-right = 0; - control-center-margin-left = 0; - notification-2fa-action = true; - notification-inline-replies = false; + layer = "overlay"; + control-center-layer = "overlay"; + cssPriority = "user"; notification-icon-size = 64; notification-body-image-height = 100; notification-body-image-width = 200; + timeout = 10; + timeout-low = 5; + timeout-critical = 0; + + widgets = [ + "inhibitors" + "dnd" + "mpris" + "notifications" + ]; + widget-config = { + title = { + text = "Notifications"; + clear-all-button = true; + button-text = "Clear All"; + }; + dnd = { + text = "Do Not Disturb"; + }; + mpris = { + image-size = 96; + blur = true; + }; + }; }; }; - - home.file.".config/swaync/style.css".source = ./style.css; }