Ubuntu Pastebin

Paste from mojo67 at Mon, 14 Mar 2016 17:13:14 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/bin/bash
# Use at your own risk!

readarray OUTPUTS < <( LC_ALL=C xrandr  | sed -n 's/ connected.*$//p' )

MAINSCREEN="${OUTPUTS[0]//[$'\t\r\n ']}"

xrandr --newmode "2560x1440_50.00"  256.25  2560 2736 3008 3456  1440 1443 1448 1484 -hsync +vsync
xrandr --addmode "${MAINSCREEN}" 2560x1440_50.00
xrandr --output "${MAINSCREEN}" --mode 2560x1440_50.00
Download as text