refactor: complete rewrite
This commit is contained in:
		
							parent
							
								
									19a4bbda3c
								
							
						
					
					
						commit
						8e81943cf9
					
				
					 399 changed files with 3396 additions and 8042 deletions
				
			
		|  | @ -1,49 +0,0 @@ | |||
| { | ||||
|   lib, | ||||
|   config, | ||||
|   osConfig, | ||||
|   ... | ||||
| }: let | ||||
|   inherit (osConfig.ooknet.appearance.colorscheme) palette; | ||||
|   inherit (osConfig.ooknet.appearance) fonts; | ||||
|   inherit (config.ooknet.desktop) pdf; | ||||
|   inherit (lib) mkIf; | ||||
| 
 | ||||
|   zathura = {"application/pdf" = ["org.pwmt.zathura.desktop"];}; | ||||
|   cfg = config.ooknet.productivity.pdf.zathura; | ||||
| in { | ||||
|   config = mkIf (cfg.enable || pdf == "zathura") { | ||||
|     programs.zathura = { | ||||
|       enable = true; | ||||
|       options = { | ||||
|         font = "${fonts.regular.family} 14"; | ||||
|         recolor = true; | ||||
|         selection-clipboard = "clipboard"; | ||||
|         default-bg = "#${palette.base00}"; | ||||
|         default-fg = "#${palette.base01}"; | ||||
|         statusbar-bg = "#${palette.base02}"; | ||||
|         statusbar-fg = "#${palette.base04}"; | ||||
|         inputbar-bg = "#${palette.base00}"; | ||||
|         inputbar-fg = "#${palette.base07}"; | ||||
|         notification-bg = "#${palette.base00}"; | ||||
|         notification-fg = "#${palette.base07}"; | ||||
|         notification-error-bg = "#${palette.base00}"; | ||||
|         notification-error-fg = "#${palette.base08}"; | ||||
|         notification-warning-bg = "#${palette.base00}"; | ||||
|         notification-warning-fg = "#${palette.base08}"; | ||||
|         highlight-color = "#${palette.base0A}"; | ||||
|         highlight-active-color = "#${palette.base0D}"; | ||||
|         completion-bg = "#${palette.base01}"; | ||||
|         completion-fg = "#${palette.base05}"; | ||||
|         completions-highlight-bg = "#${palette.base0D}"; | ||||
|         completions-highlight-fg = "#${palette.base07}"; | ||||
|         recolor-lightcolor = "#${palette.base00}"; | ||||
|         recolor-darkcolor = "#${palette.base06}"; | ||||
|       }; | ||||
|     }; | ||||
|     xdg.mimeApps = mkIf (pdf == "zathura") { | ||||
|       associations.added = zathura; | ||||
|       defaultApplications = zathura; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue