mirror of
				https://forge.katzen.cafe/schrottkatze/nix-configs.git
				synced 2025-10-31 01:27:57 +01:00 
			
		
		
		
	lmao
This commit is contained in:
		
					parent
					
						
							
								224c80c420
							
						
					
				
			
			
				commit
				
					
						1cd19687be
					
				
			
		
					 21 changed files with 315 additions and 68 deletions
				
			
		
							
								
								
									
										19
									
								
								other/scripts/desktop/window-screenshot.nu
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								other/scripts/desktop/window-screenshot.nu
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| #!/usr/bin/env nu  | ||||
| 
 | ||||
| def main [ ] { | ||||
|   let reg = ( | ||||
|     xwininfo -id (xdotool getactivewindow)  | ||||
|     | lines  | ||||
|     | parse '{key}: {value}'  | ||||
|     | str trim  | ||||
|     | get value | ||||
|     | echo {  | ||||
|       x: $in.1 | ||||
|       y: $in.2 | ||||
|       w: $in.5 | ||||
|       h: $in.6 | ||||
|     } | ||||
|   ); | ||||
| 
 | ||||
|   flameshot gui --region $"($reg.w)x($reg.h)+($reg.x)+($reg.y)" -c -p ~/Pictures/screenshots | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Schrottkatze
				Schrottkatze