Shorten refresh rate output
This commit is contained in:
parent
08223e8a5d
commit
1e486850d8
1 changed files with 1 additions and 0 deletions
1
neofetch
1
neofetch
|
@ -1522,6 +1522,7 @@ getresolution () {
|
|||
"off") resolution="$(xrandr --nograb --current | awk '/\*/ {printf $1 ", "}')" ;;
|
||||
esac
|
||||
resolution="${resolution//\*}"
|
||||
resolution="${resolution//\.[0-9][0-9]}"
|
||||
|
||||
elif type -p xdpyinfo >/dev/null 2>&1; then
|
||||
resolution="$(xdpyinfo 2>/dev/null | awk '/dimensions:/ {printf $2}')"
|
||||
|
|
Loading…
Reference in a new issue