mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
neofetch: Fix resolution issue. Closes #1347
This commit is contained in:
2
neofetch
2
neofetch
@@ -2809,6 +2809,8 @@ get_resolution() {
|
|||||||
resolution="$(xrandr --nograb --current |\
|
resolution="$(xrandr --nograb --current |\
|
||||||
awk -F 'connected |\\+|\\(' \
|
awk -F 'connected |\\+|\\(' \
|
||||||
'/ connected/ && $2 {printf $2 ", "}')"
|
'/ connected/ && $2 {printf $2 ", "}')"
|
||||||
|
|
||||||
|
resolution="${resolution/primary, }"
|
||||||
resolution="${resolution/primary }"
|
resolution="${resolution/primary }"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user