hyprland: add grimblast
This commit is contained in:
		
							parent
							
								
									428d4fa68a
								
							
						
					
					
						commit
						667c64f3ea
					
				
					 2 changed files with 36 additions and 0 deletions
				
			
		|  | @ -1,6 +1,7 @@ | ||||||
| { | { | ||||||
|   imports = [ |   imports = [ | ||||||
|     ./rofi.nix |     ./rofi.nix | ||||||
|  |     ./hyprcapture.nix | ||||||
|     ./mako.nix |     ./mako.nix | ||||||
|     ./tools.nix |     ./tools.nix | ||||||
|     ./waybar.nix |     ./waybar.nix | ||||||
|  |  | ||||||
							
								
								
									
										35
									
								
								modules/home/workstation/hyprland/components/hyprcapture.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								modules/home/workstation/hyprland/components/hyprcapture.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | ||||||
|  | { | ||||||
|  |   lib, | ||||||
|  |   osConfig, | ||||||
|  |   config, | ||||||
|  |   inputs', | ||||||
|  |   ... | ||||||
|  | }: let | ||||||
|  |   inherit (lib) mkIf; | ||||||
|  |   inherit (osConfig.ooknet.workstation) environment; | ||||||
|  |   inherit (inputs') hyprland-contrib; | ||||||
|  | in { | ||||||
|  |   config = mkIf (environment == "hyprland") { | ||||||
|  |     home.packages = [ | ||||||
|  |       # Screenshot tool | ||||||
|  |       hyprland-contrib.packages.grimblast | ||||||
|  |       # Screen recording tool | ||||||
|  |     ]; | ||||||
|  | 
 | ||||||
|  |     # 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