mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-20 18:57:12 +00:00
Shorten refresh rate output
This commit is contained in:
1
neofetch
1
neofetch
@@ -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}')"
|
||||||
|
|||||||
Reference in New Issue
Block a user