refactor: major theme refactor
new profile catagory: theme. refactor modules for wallpaper, fonts, gtk, and qt. adjusted modules that depend on old theming modules
This commit is contained in:
		
							parent
							
								
									7d910ba77c
								
							
						
					
					
						commit
						f5e87f2a79
					
				
					 34 changed files with 217 additions and 118 deletions
				
			
		
							
								
								
									
										34
									
								
								home/modules/theme/wallpaper/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								home/modules/theme/wallpaper/default.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,34 @@ | |||
| { lib, config, inputs, pkgs, ... }: | ||||
| let  | ||||
|   inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) nixWallpaperFromScheme; | ||||
|   inherit (lib) types mkDefault mkIf mkOption mkEnableOption; | ||||
| 
 | ||||
|   cfg = config.homeModules.theme.wallpaper; | ||||
| in | ||||
| { | ||||
|   options.homeModules.theme.wallpaper = { | ||||
|     enable = mkEnableOption "Enable wallpaper module"; | ||||
|     path = mkOption { | ||||
|       type = types.path; | ||||
|       default = null; | ||||
|       description = "Wallpaper Path"; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     homeModules.theme.wallpaper.path = | ||||
|       let | ||||
|         largest = f: xs: builtins.head (builtins.sort (a: b: a > b) (map f xs)); | ||||
|         largestWidth = largest (x: x.width) config.monitors; | ||||
|         largestHeight = largest (x: x.height) config.monitors; | ||||
|       in | ||||
|       mkDefault (nixWallpaperFromScheme | ||||
|         { | ||||
|           scheme = config.colorscheme; | ||||
|           width = largestWidth; | ||||
|           height = largestHeight; | ||||
|           logoScale = 4; | ||||
|         }); | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue