I need to get the current X*Y resolution of X in a shell script. xrandr -q gives me a line like this:
Screen 0: minimum 320 x 200, current 1600 x 1200, maximum 3080 x 1600
How can I extract the X and Y current resolution values? sed, awk, cut or any other console solution is welcomed.