Resolution: Show decimals
This commit is contained in:
parent
1a6fe2099c
commit
ac7cf27147
1 changed files with 0 additions and 1 deletions
1
neofetch
1
neofetch
|
@ -1382,7 +1382,6 @@ get_resolution() {
|
||||||
"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; then
|
elif type -p xdpyinfo >/dev/null; then
|
||||||
resolution="$(xdpyinfo | awk '/dimensions:/ {printf $2}')"
|
resolution="$(xdpyinfo | awk '/dimensions:/ {printf $2}')"
|
||||||
|
|
Loading…
Reference in a new issue