aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules/home/desktop/components/picom
diff options
context:
space:
mode:
Diffstat (limited to 'snowfall/modules/home/desktop/components/picom')
-rw-r--r--snowfall/modules/home/desktop/components/picom/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/snowfall/modules/home/desktop/components/picom/default.nix b/snowfall/modules/home/desktop/components/picom/default.nix
new file mode 100644
index 0000000..698e06c
--- /dev/null
+++ b/snowfall/modules/home/desktop/components/picom/default.nix
@@ -0,0 +1,30 @@
+{ options, config, lib, namespace, ... }:
+
+with lib; with lib.${namespace}; let
+ cfg = config.${namespace}.desktop.components.picom;
+in {
+ options.${namespace}.desktop.components.picom = with types; {
+ enable = mkEnableOption "picom";
+ };
+
+ config = mkIf cfg.enable {
+ services.picom = {
+ enable = true;
+
+ backend = "glx";
+ vSync = true;
+
+ settings = {
+ blur = {
+ method = "gaussian";
+ size = 10;
+ deviation = 2;
+ };
+
+ blur-background-exclude = [
+ "window_type = 'dock'"
+ ];
+ };
+ };
+ };
+}