mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 03:59:58 +00:00
fixed if statement for linux resolution
This commit is contained in:
2
neofetch
2
neofetch
@@ -1285,7 +1285,7 @@ getresolution () {
|
|||||||
esac
|
esac
|
||||||
resolution=${resolution//\*}
|
resolution=${resolution//\*}
|
||||||
|
|
||||||
elif type -p xdpyinfo >/dev/null 2>&1 && \
|
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}')
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user