55 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ config, lib, ... }:
 | 
						|
 | 
						|
let
 | 
						|
  wayland = config.ooknet.wayland;
 | 
						|
  pointer = config.home.pointerCursor;
 | 
						|
  inherit (config.colorscheme) palette;
 | 
						|
  inherit (lib) mkIf;
 | 
						|
in
 | 
						|
 | 
						|
{
 | 
						|
  config = mkIf (wayland.compositor == "hyprland") {
 | 
						|
    wayland.windowManager.hyprland = {
 | 
						|
      settings = {
 | 
						|
        cursor = {
 | 
						|
          inactive_timeout = 4;
 | 
						|
        };
 | 
						|
        general = {
 | 
						|
          gaps_in = 10;
 | 
						|
          gaps_out = 10;
 | 
						|
          border_size = 2;
 | 
						|
          "col.active_border" = "0xff${palette.base05}";
 | 
						|
          "col.inactive_border" = "0xff${palette.base02}";
 | 
						|
          };
 | 
						|
 | 
						|
        exec-once = [
 | 
						|
          "hyprctl setcursor ${pointer.name} ${toString pointer.size}"
 | 
						|
        ];
 | 
						|
 | 
						|
        decoration = {
 | 
						|
 | 
						|
          active_opacity = 1.0;
 | 
						|
          inactive_opacity = 1.0;
 | 
						|
          fullscreen_opacity = 1.0;
 | 
						|
 | 
						|
          rounding = 0;
 | 
						|
 | 
						|
          blur = {
 | 
						|
            enabled = false;
 | 
						|
            ignore_opacity = true;
 | 
						|
          };
 | 
						|
 | 
						|
          drop_shadow = true;
 | 
						|
          shadow_range = 12;
 | 
						|
          shadow_offset = "3 3";
 | 
						|
          "col.shadow" = "0x44000000";
 | 
						|
          "col.shadow_inactive" = "0x66000000";
 | 
						|
        };
 | 
						|
    
 | 
						|
        animations = {
 | 
						|
          enabled = false;
 | 
						|
        };
 | 
						|
      };
 | 
						|
    };
 | 
						|
  };
 | 
						|
}
 |