parent
1dee216fb5
commit
8aeb0e4fb1
2
neofetch
2
neofetch
|
@ -1495,7 +1495,7 @@ get_resolution() {
|
||||||
case "$refresh_rate" in
|
case "$refresh_rate" in
|
||||||
"on") resolution="$(xrandr --nograb --current | awk 'match($0,/[0-9]*\.[0-9]*\*/) {printf $1 " @ " substr($0,RSTART,RLENGTH) "Hz, "}')" ;;
|
"on") resolution="$(xrandr --nograb --current | awk 'match($0,/[0-9]*\.[0-9]*\*/) {printf $1 " @ " substr($0,RSTART,RLENGTH) "Hz, "}')" ;;
|
||||||
"off")
|
"off")
|
||||||
resolution="$(xrandr --nograb --current | awk -F 'connected |+' '/ connected/ {printf $2 ", "}')"
|
resolution="$(xrandr --nograb --current | awk -F 'connected |\\+' '/ connected/ {printf $2 ", "}')"
|
||||||
resolution="${resolution/primary }"
|
resolution="${resolution/primary }"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Reference in New Issue