Commit 1e486850 authored by Dylan Araps's avatar Dylan Araps

Shorten refresh rate output

parent 08223e8a
...@@ -1522,6 +1522,7 @@ getresolution () { ...@@ -1522,6 +1522,7 @@ getresolution () {
"off") resolution="$(xrandr --nograb --current | awk '/\*/ {printf $1 ", "}')" ;; "off") resolution="$(xrandr --nograb --current | awk '/\*/ {printf $1 ", "}')" ;;
esac esac
resolution="${resolution//\*}" resolution="${resolution//\*}"
resolution="${resolution//\.[0-9][0-9]}"
elif type -p xdpyinfo >/dev/null 2>&1; then elif type -p xdpyinfo >/dev/null 2>&1; then
resolution="$(xdpyinfo 2>/dev/null | awk '/dimensions:/ {printf $2}')" resolution="$(xdpyinfo 2>/dev/null | awk '/dimensions:/ {printf $2}')"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment