wip(home): refactor home modules *WILL NOT BUILD*
This commit is contained in:
		
							parent
							
								
									2033810429
								
							
						
					
					
						commit
						6a591ecbf7
					
				
					 115 changed files with 1028 additions and 791 deletions
				
			
		|  | @ -0,0 +1,34 @@ | |||
| { lib, config, pkgs, inputs, ... }: | ||||
| 
 | ||||
| let | ||||
|   inherit (lib) mkIf; | ||||
|   wayland = config.ooknet.wayland; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = mkIf (wayland.compositor == "hyprland") { | ||||
| 
 | ||||
|     home.packages = with inputs; [ | ||||
|     # Screenshot tool | ||||
|       hyprland-contrib.packages.${pkgs.system}.grimblast | ||||
|     # Screen recording tool | ||||
|       ooks-scripts.packages.${pkgs.system}.hyprrecord | ||||
|     ]; | ||||
| 
 | ||||
|     # Add XDG user directories that the scripts use | ||||
|     xdg.userDirs.extraConfig = { | ||||
|       XDG_RECORDINGS_DIR = "${config.xdg.userDirs.videos}/Recordings"; | ||||
|       XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; | ||||
|     }; | ||||
| 
 | ||||
|     wayland.windowManager.hyprland.settings.bind = [ | ||||
|       # Screenshot binds | ||||
|       ",               Print,         exec,     grimblast --notify --cursor copysave area" | ||||
|       "SUPER,          Print,         exec,     grimblast --notify --cursor copysave screen" | ||||
|       # Recording binds | ||||
|       "SUPER,          r,             exec,     hyprrecord -a -w video screen copysave" | ||||
|       "SUPER CTRL,     r,             exec,     hyprrecord -a -w video area copysave" | ||||
|       "SUPER ALT,      r,             exec,     hyprrecord -w gif area copysave" | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue