Fixed refresh-rate script invalid json on multiple monitors

This commit is contained in:
GaspardCulis 2023-10-30 09:09:55 +01:00
parent 2515910d41
commit ddef9ea7e2

View file

@ -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 () {