From c47626e1dadc96162cf65af6c1f2485e37ce865b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 11 Feb 2017 19:03:14 -0500 Subject: xrotate: fix, kinda --- .local/bin/xrotate | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.local/bin/xrotate b/.local/bin/xrotate index 55b4e88..c7d9f0d 100755 --- a/.local/bin/xrotate +++ b/.local/bin/xrotate @@ -4,7 +4,9 @@ type xrandr &>/dev/null && modules+=(xrandr) xrandr.get() { - xrandr --query --verbose|awk -v OFS=$'\t' '/ connected /{print "xrandr", $1, $5}' + # FIXME: I don't think simple column counting is reliable. + # I'll have to study the exact output format. + xrandr --query --verbose|awk -v OFS=$'\t' '/ connected /{print "xrandr", $1, $6}' } xrandr.set() { -- cgit v1.1-4-g5e80