mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
fixed refresh rate on OS X
This commit is contained in:
4
neofetch
4
neofetch
@@ -1538,8 +1538,8 @@ getresolution () {
|
||||
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
|
||||
fi
|
||||
|
||||
[[ "$refresh_rate" == "off" ]] && \
|
||||
resolution="${resolution// @ *([0-9])Hz}"
|
||||
[[ "$refresh_rate" == "off" ]] || [[ "$resolution" =~ "@ 0Hz" ]] && \
|
||||
resolution="${resolution// @ *[0-9]Hz}"
|
||||
;;
|
||||
|
||||
"Windows")
|
||||
|
||||
Reference in New Issue
Block a user