From ddef9ea7e2de4fac712649a4fdd8bc00f8a430fc Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Mon, 30 Oct 2023 09:09:55 +0100 Subject: [PATCH] Fixed refresh-rate script invalid json on multiple monitors --- bar/i3status-rust/scripts/refresh-rate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bar/i3status-rust/scripts/refresh-rate b/bar/i3status-rust/scripts/refresh-rate index 1436e2d..6bf6bb3 100755 --- a/bar/i3status-rust/scripts/refresh-rate +++ b/bar/i3status-rust/scripts/refresh-rate @@ -1,7 +1,7 @@ #!/usr/bin/env bash get-refresh-rate () { - xrandr --screen 0 | grep "*" | cut -d "*" -f 1 | awk '{print $NF}' | cut -d "." -f 1 + xrandr --screen 0 | grep "*" | cut -d "*" -f 1 | awk '{print $NF}' | cut -d "." -f 1 | head -n 1 } get-refresh-rate-json () {