hyprland: swap back to mako from swaync
This commit is contained in:
		
							parent
							
								
									c2f10e1c47
								
							
						
					
					
						commit
						8e7cd348b1
					
				
					 3 changed files with 14 additions and 58 deletions
				
			
		|  | @ -2,8 +2,7 @@ | ||||||
|   imports = [ |   imports = [ | ||||||
|     ./rofi.nix |     ./rofi.nix | ||||||
|     ./hyprcapture.nix |     ./hyprcapture.nix | ||||||
|     #  ./mako.nix |     ./mako.nix | ||||||
|     ./swaync.nix |  | ||||||
|     ./tools.nix |     ./tools.nix | ||||||
|     ./waybar.nix |     ./waybar.nix | ||||||
|     ./hypridle.nix |     ./hypridle.nix | ||||||
|  |  | ||||||
|  | @ -1,37 +1,42 @@ | ||||||
| { | { | ||||||
|   osConfig, |   osConfig, | ||||||
|  |   hozen, | ||||||
|   lib, |   lib, | ||||||
|   ... |   ... | ||||||
| }: let | }: let | ||||||
|   inherit (osConfig.ooknet.appearance) colorscheme fonts; |   inherit (osConfig.ooknet.appearance) fonts; | ||||||
|   inherit (colorscheme) palette; |  | ||||||
|   inherit (osConfig.ooknet.workstation) environment; |   inherit (osConfig.ooknet.workstation) environment; | ||||||
|  |   inherit (hozen) color; | ||||||
|   inherit (lib) mkIf; |   inherit (lib) mkIf; | ||||||
| in { | in { | ||||||
|   config = mkIf (environment == "hyprland") { |   config = mkIf (environment == "hyprland") { | ||||||
|     services.mako = { |     services.mako = { | ||||||
|       enable = true; |       enable = true; | ||||||
|  |       layer = "overlay"; | ||||||
|       font = "${fonts.regular.family} 12"; |       font = "${fonts.regular.family} 12"; | ||||||
|       padding = "10,10"; |  | ||||||
|       anchor = "top-right"; |       anchor = "top-right"; | ||||||
|       width = 300; |       width = 300; | ||||||
|       height = 100; |       height = 100; | ||||||
|       borderSize = 2; |       borderSize = 2; | ||||||
|       defaultTimeout = 3000; |       defaultTimeout = 3000; | ||||||
|       backgroundColor = "#${palette.base00}dd"; |       backgroundColor = "#${color.layout.menu}"; | ||||||
|       borderColor = "#${palette.base05}dd"; |       borderColor = "#${color.border.active}"; | ||||||
|       textColor = "#${palette.base05}dd"; |       textColor = "#${color.typography.text}"; | ||||||
|       extraConfig = '' |       extraConfig = '' | ||||||
|         [app-name="system-notify"] |         [app-name="system-notify"] | ||||||
|         padding=3,3 |         text-alignment=center | ||||||
|  |         font=${fonts.regular.family} 16 | ||||||
|  |         anchor=top-center | ||||||
|         width=100 |         width=100 | ||||||
|         height=100 |         height=100 | ||||||
|  |         [app-name="spotify_player"] | ||||||
|  |         border-color=#${color.green.base} | ||||||
|         [urgency=critical] |         [urgency=critical] | ||||||
|         padding=3,3 |         padding=3,3 | ||||||
|         width=300 |         width=300 | ||||||
|         height=100 |         height=100 | ||||||
|         anchor=top-center |         anchor=top-center | ||||||
|         border-color=#${palette.base08}dd |         border-color=#${color.red.base}dd | ||||||
|       ''; |       ''; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|  | @ -1,48 +0,0 @@ | ||||||
| { |  | ||||||
|   hozen, |  | ||||||
|   lib, |  | ||||||
|   pkgs, |  | ||||||
|   osConfig, |  | ||||||
|   ... |  | ||||||
| }: let |  | ||||||
|   inherit (osConfig.ooknet.appearance) fonts; |  | ||||||
|   inherit (hozen) color; |  | ||||||
| in { |  | ||||||
|   services.swaync = { |  | ||||||
|     enable = true; |  | ||||||
|     settings = { |  | ||||||
|       positionX = "right"; |  | ||||||
|       positionY = "top"; |  | ||||||
|       layer = "overlay"; |  | ||||||
|       control-center-layer = "top"; |  | ||||||
|       layer-shell = true; |  | ||||||
|       control-center-margin-top = 0; |  | ||||||
|       control-center-margin-bottom = 0; |  | ||||||
|       control-center-margin-right = 0; |  | ||||||
|       control-center-margin-left = 0; |  | ||||||
| 
 |  | ||||||
|       notification-2fa-action = true; |  | ||||||
|       notification-inline-replies = false; |  | ||||||
|       notification-icon-size = 32; |  | ||||||
|       notification-body-image-height = 100; |  | ||||||
|       notification-body-image-width = 200; |  | ||||||
|     }; |  | ||||||
|     style = |  | ||||||
|       /* |  | ||||||
|       css |  | ||||||
|       */ |  | ||||||
|       '' |  | ||||||
|         * { |  | ||||||
|           font-family: ${fonts.monospace.family}; |  | ||||||
|           font-size: 14px; |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         .notification.critical { |  | ||||||
|           border: 3px solid #${color.error.border}; |  | ||||||
|           background-color: #${color.error.bg}; |  | ||||||
|           color: #${color.error.fg}; |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|       ''; |  | ||||||
|   }; |  | ||||||
| } |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue