support 'primary' print case

In some platform, `xrandr` command gives 'primary' information and it
causes index error. Work-around it.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>