summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/xrotate4
1 files changed, 3 insertions, 1 deletions
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() {