enable picom
This commit is contained in:
		
							parent
							
								
									299e28e2aa
								
							
						
					
					
						commit
						31f62964e0
					
				
					 3 changed files with 8 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,9 @@
 | 
			
		|||
{ inputs, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  imports = [ ];
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./picom.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  nixpkgs.overlays = [
 | 
			
		||||
    (final: prev: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										15
									
								
								home-manager/common/desktop/picom.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								home-manager/common/desktop/picom.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  services.picom = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    shadow = true;
 | 
			
		||||
    backend = "glx";
 | 
			
		||||
    settings = {
 | 
			
		||||
      corner-radius = 10;
 | 
			
		||||
      rounded-corners-exclude = [
 | 
			
		||||
        "window_type = 'dock'"
 | 
			
		||||
      ];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -4,7 +4,10 @@
 | 
			
		|||
xrandr --output HDMI-A-0 --mode 1920x1080 --output DisplayPort-0 --mode 2560x1440 --right-of HDMI-A-0
 | 
			
		||||
 | 
			
		||||
# Apply our wallpaper
 | 
			
		||||
feh --bg-scale /etc/nixos/assets/chinatown.png
 | 
			
		||||
feh --bg-scale ~/dotfiles.nix/assets/chinatown.png
 | 
			
		||||
 | 
			
		||||
# Enable our compositor
 | 
			
		||||
picom -b
 | 
			
		||||
 | 
			
		||||
# Launch our window manager
 | 
			
		||||
exec xmonad
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue