I am reading this article. There is a statement there that goes:
ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -s $(xwininfo -root | grep 'geometry' | awk '{print $2;}') -r 25 -i :0.0 -sameq -f mpeg -ar 48000 -s wvga -y sample.mp4
When I run the command I get an error with the section that says:
xwininfo -root | grep 'geometry' | awk '{print $2;}'
The reason is that when you use this command on my computer it outputs:
1360x768+0+0
How do I remove the last part of the screen resolution output to be 1360x768 instead of 1360x768+0+0?