mirror of
				https://git.davidovski.xyz/dot.git
				synced 2024-08-15 00:43:28 +00:00 
			
		
		
		
	Add cut cbz and zathura configs
This commit is contained in:
		
							parent
							
								
									28a625400b
								
							
						
					
					
						commit
						bc668b05c4
					
				
					 3 changed files with 8 additions and 4 deletions
				
			
		|  | @ -1,3 +1,3 @@ | |||
| #!/bin/sh | ||||
| 
 | ||||
| printf "pm-suspend reboot poweroff" | rofi -dmenu -p "power" | xargs -r  | ||||
| printf "%s\n" "pm-suspend" "pm-hibernate" "reboot" "poweroff" | rofi -dmenu -p "power" | xargs -r  | ||||
|  |  | |||
|  | @ -9,11 +9,13 @@ width=$(cat $info | grep Width | cut -d' ' -f4) | |||
| height=$(cat $info | grep Height | cut -d' ' -f4) | ||||
| 
 | ||||
| size="${width}x${height}" | ||||
| position=+$(echo $geom | cut -d'+' -f2- | sed "s/+/,/g") | ||||
| x=$(cat $info | grep "Absolute upper-left X" | cut -d' ' -f7) | ||||
| y=$(cat $info | grep "Absolute upper-left Y" | cut -d' ' -f7) | ||||
| position="+$x,$y" | ||||
| 
 | ||||
| filename=$(date +"$HOME/pics/screenshot/%F_%T.mp4") | ||||
| filename=$(date +"%F_%T.mp4") | ||||
| 
 | ||||
| echo $size and $position | ||||
| ffmpeg -y -f x11grab -video_size $size -i $position $filename | ||||
| ffmpeg -y -f x11grab -video_size $size -i "$position" $filename | ||||
| 
 | ||||
| rm $info | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue