From add2c126fe75fbfb665919246285f4ca4d361364 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 8 Aug 2024 21:28:57 -0400 Subject: [PATCH] dwm: Inline picom / dunst configs This prevents us from having specialization-specific configs in the home directory, which would be unrelated to the main hyprland environment and would require explicitly disabling it. Other nix-configs solve this problem with nested directory structures, however I enjoy being able to access all files in the nix-config one directory away. --- specializations/dwm.nix | 58 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/specializations/dwm.nix b/specializations/dwm.nix index c860df42..ddb681ef 100644 --- a/specializations/dwm.nix +++ b/specializations/dwm.nix @@ -1,12 +1,64 @@ -{ lib, ... }: +{ lib, pkgs, ... }: let inherit (lib) singleton; in { home-manager.sharedModules = singleton { - services.picom.enable = true; - services.dunst.enable = true; + services.picom = rec { + enable = true; + backend = "glx"; + + vSync = true; + fade = true; + shadow = true; + + fadeDelta = 5; + + fadeExclude = [ + "window_type = 'menu'" + "window_type = 'dropdown_menu'" + "window_type = 'popup_menu'" + "window_type = 'tooltip'" + ]; + + shadowExclude = fadeExclude; + + settings = { + blur = { + method = "dual_kawase"; + size = 10; + }; + }; + }; + + services.dunst = { + enable = true; + + iconTheme = { + package = pkgs.papirus-icon-theme; + name = "Papirus"; + }; + + settings = { + global = { + geometry = "1870x5-25+45"; + width = 350; + separator_height = 5; + padding = 24; + horizontal_padding = 24; + frame_width = 3; + idle_threshold = 120; + alignment = "center"; + word_wrap = "yes"; + transparency = 5; + format = "%s: %b"; + markup = "full"; + min_icon_size = 32; + max_icon_size = 128; + }; + }; + }; }; services = {