Quick add-on to previous comment: use "xrandr --current" to prevent the command from causing the screen to freeze for a few ms.
Quick add-on to previous comment: use "xrandr --current" to prevent the command from causing the screen to freeze for a few ms.