From 0a997c15b3417ff0560618f62cde12556db10ad0 Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Fri, 10 Sep 2021 09:16:30 +0000 Subject: [PATCH] added picom jonaburg --- flake.lock | 17 +++++++++++++++++ modules/default.nix | 4 +++- modules/picom.nix | 43 ++++++++++++++++++++++++++++++++++--------- 3 files changed, 54 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index 6973119..c0aa7d8 100644 --- a/flake.lock +++ b/flake.lock @@ -52,10 +52,27 @@ "type": "github" } }, + "picom": { + "flake": false, + "locked": { + "lastModified": 1606582992, + "narHash": "sha256-R+YUGBrLst6CpUgG9VCwaZ+LiBSDWTp0TLt1Ou4xmpQ=", + "owner": "jonaburg", + "repo": "picom", + "rev": "a8445684fe18946604848efb73ace9457b29bf80", + "type": "github" + }, + "original": { + "owner": "jonaburg", + "repo": "picom", + "type": "github" + } + }, "root": { "inputs": { "home-manager": "home-manager", "nixpkgs": "nixpkgs", + "picom": "picom", "unstable": "unstable", "utils": "utils" } diff --git a/modules/default.nix b/modules/default.nix index 77ba20a..34b0ce3 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -6,10 +6,10 @@ ./dunst ./emacs ./polybar + ./rofi ./git.nix ./kitty.nix ./picom.nix - ./rofi.nix ./zathura.nix ./zsh.nix ]; @@ -48,6 +48,8 @@ home.packages = with pkgs; [ neofetch keepassxc + spotify + spicetify-cli ]; home.stateVersion = "21.05"; diff --git a/modules/picom.nix b/modules/picom.nix index 81bff6b..21edda4 100644 --- a/modules/picom.nix +++ b/modules/picom.nix @@ -11,16 +11,41 @@ let ]; blur = true; inactiveDim = "0.1"; + experimentalBackends = true; + extraOptions = '' + corner-radius = 10; + rounded-cornes-exclude = [ + "class_g = 'Polybar'", + "class_g = 'Rofi'" + ] + round-borders = 1; + + # improve performance + glx-no-rebind-pixmap = true; + glx-no-stencil = true; + + # fastest swap method + glx-swap-method = 1; + + # dual kawase blur + blur-background-fixed = false; + # blur-method = "dual_kawase"; + blur-strength = 10; + use-ewmh-active-win = true; + detect-rounded-corners = true; + + # stop compositing if there's a fullscreen program + unredir-if-possible = true; + + # group wintypes and don't focus a menu (Telegram) + detect-transient = true; + detect-client-leader = true; + + # needed for nvidia with glx backend + xrender-sync-fence = true; + ''; + }; }; - extraOptions = '' - corner-radius = 10; - rounded-cornes-exclude = [ - "class_g = 'Polybar'", - "class_g = 'Rofi'" - ] - round-borders = 1; - ''; - }; in { home-manager.users.moritz = {...}: (base);