mirror of
				https://github.com/nmasur/dotfiles
				synced 2025-11-04 01:13:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			62 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  lib,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
 | 
						|
let
 | 
						|
  cfg = config.nmasur.presets.services.picom;
 | 
						|
in
 | 
						|
 | 
						|
{
 | 
						|
 | 
						|
  options.nmasur.presets.services.picom.enable = lib.mkEnableOption "Picom compositor";
 | 
						|
 | 
						|
  config = lib.mkIf cfg.enable {
 | 
						|
 | 
						|
    services.picom = {
 | 
						|
      enable = true;
 | 
						|
      backend = "glx";
 | 
						|
      settings = {
 | 
						|
        blur = false;
 | 
						|
        blurExclude = [ ];
 | 
						|
        inactiveDim = "0.05";
 | 
						|
        noDNDShadow = false;
 | 
						|
        noDockShadow = false;
 | 
						|
        # shadow-radius = 20
 | 
						|
        # '';
 | 
						|
        # shadow-radius = 20
 | 
						|
        # corner-radius = 10
 | 
						|
        # blur-size = 20
 | 
						|
        # rounded-corners-exclude = [
 | 
						|
        # "window_type = 'dock'",
 | 
						|
        # "class_g = 'i3-frame'"
 | 
						|
        # ]
 | 
						|
        # '';
 | 
						|
      };
 | 
						|
      fade = false;
 | 
						|
      inactiveOpacity = 1.0;
 | 
						|
      menuOpacity = 1.0;
 | 
						|
      opacityRules = [
 | 
						|
        "0:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_HIDDEN'" # Hide tabbed windows
 | 
						|
      ];
 | 
						|
      shadow = false;
 | 
						|
      shadowExclude = [ ];
 | 
						|
      shadowOffsets = [
 | 
						|
        (-10)
 | 
						|
        (-10)
 | 
						|
      ];
 | 
						|
      shadowOpacity = 0.5;
 | 
						|
      vSync = true;
 | 
						|
    };
 | 
						|
 | 
						|
    xsession.windowManager.i3.config.startup = [
 | 
						|
      {
 | 
						|
        command = "systemctl --user restart picom";
 | 
						|
        always = true;
 | 
						|
        notification = false;
 | 
						|
      }
 | 
						|
    ];
 | 
						|
  };
 | 
						|
}
 |