sway: don't require rebuilding sway dependencies
This commit is contained in:
		
							parent
							
								
									7bb5a7c5a0
								
							
						
					
					
						commit
						0d5a1c1fd5
					
				
					 3 changed files with 9 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -44,10 +44,12 @@
 | 
			
		|||
          --replace ZWLR_LAYER_SHELL_V1_LAYER_TOP ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY
 | 
			
		||||
      '';
 | 
			
		||||
    });
 | 
			
		||||
    sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: {
 | 
			
		||||
      patches = old.patches
 | 
			
		||||
        ++ [ ../patches/sway/fix-hide_cursor-clearing-focus.patch ];
 | 
			
		||||
    });
 | 
			
		||||
    mySway = prev.sway.override {
 | 
			
		||||
      sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: {
 | 
			
		||||
        patches = old.patches
 | 
			
		||||
          ++ [ ../patches/sway/fix-hide_cursor-clearing-focus.patch ];
 | 
			
		||||
      });
 | 
			
		||||
    };
 | 
			
		||||
    mangohud = prev.mangohud.overrideAttrs (o: {
 | 
			
		||||
      patches = o.patches ++ [
 | 
			
		||||
        (prev.fetchpatch {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,6 +17,7 @@ in
 | 
			
		|||
    # enable sway window manager
 | 
			
		||||
    programs.sway = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      package = pkgs.mySway;
 | 
			
		||||
      wrapperFeatures.gtk = true;
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,6 +21,7 @@ in
 | 
			
		|||
 | 
			
		||||
    wayland.windowManager.sway = {
 | 
			
		||||
      enable = true;
 | 
			
		||||
      package = pkgs.mySway;
 | 
			
		||||
      config = {
 | 
			
		||||
        bars = [ ];
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -105,7 +106,7 @@ in
 | 
			
		|||
    xdg.configFile."OpenTabletDriver/settings.json".source = ./open-tablet-driver.json;
 | 
			
		||||
 | 
			
		||||
    home.packages = with pkgs; [
 | 
			
		||||
      sway
 | 
			
		||||
      mySway
 | 
			
		||||
      swaybg
 | 
			
		||||
      swaylock
 | 
			
		||||
      wdisplays
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue