🧹 restructure layout

This commit is contained in:
Moritz Böhme 2022-07-15 13:11:54 +02:00
parent 40c2a5fb29
commit 268374ad58
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
115 changed files with 2641 additions and 2085 deletions

View file

@ -1,36 +1,55 @@
{ config, lib, pkgs, ... }:
{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.services.picom;
in
{
home-manager.users.moritz = {
services.picom = {
enable = true;
package = pkgs.picom-next;
blur = true;
blurExclude = [ "class_g = 'Polybar'" ];
experimentalBackends = true;
inactiveOpacity = "0.97";
opacityRule = [ "100:fullscreen" "100:class_g = 'Polybar'" ];
vSync = true;
extraOptions = ''
# improve performance
glx-no-rebind-pixmap = true;
glx-no-stencil = true;
options.my.services.picom = {
enable = mkOption {
default = false;
type = types.bool;
example = true;
};
};
# fastest swap method
glx-swap-method = 1;
config = lib.mkIf cfg.enable {
home-manager.users.moritz = {
services.picom = {
enable = true;
package = pkgs.picom-next;
settings = {
blur = true;
blurExclude = [ "class_g = 'Polybar'" ];
# dual kawase blur
blur-background-fixed = false;
blur-method = "dual_kawase";
blur-strength = 2;
# improve performance
glx-no-rebind-pixmap = true;
glx-no-stencil = true;
# group wintypes and don't focus a menu (Telegram)
detect-transient = true;
detect-client-leader = true;
# fastest swap method
glx-swap-method = 1;
# needed for nvidia with glx backend
xrender-sync-fence = true;
'';
# dual kawase blur
blur-background-fixed = false;
blur-method = "dual_kawase";
blur-strength = 2;
# 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;
};
experimentalBackends = true;
inactiveOpacity = 0.97;
opacityRules = [ "100:fullscreen" "100:class_g = 'Polybar'" ];
vSync = true;
};
};
};
}