47 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   osConfig,
 | |
|   ...
 | |
| }: let
 | |
|   inherit (lib) mkIf elem;
 | |
|   inherit (osConfig.ooknet.appearance.colorscheme) palette;
 | |
|   inherit (osConfig.ooknet.appearance) fonts;
 | |
|   inherit (osConfig.ooknet.workstation) profiles;
 | |
| 
 | |
|   zathuraMime = {"application/pdf" = ["org.pwmt.zathura.desktop"];};
 | |
| in {
 | |
|   config = mkIf (elem "productivity" profiles) {
 | |
|     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 = {
 | |
|       associations.added = zathuraMime;
 | |
|       defaultApplications = zathuraMime;
 | |
|     };
 | |
|   };
 | |
| }
 |