ソースを参照

resolution: Fix output when monitor is turned off.

Dylan Araps 5 年 前
コミット
0e448167c0
1 ファイル変更1 行追加1 行削除
  1. 1 1
      neofetch

+ 1 - 1
neofetch

@@ -2905,7 +2905,7 @@ get_resolution() {
                     "off")
                         resolution="$(xrandr --nograb --current |\
                                       awk -F 'connected |\\+|\\(' \
-                                             '/ connected/ && $2 {printf $2 ", "}')"
+                                             '/ connected.*[0-9]+x[0-9]+\+/ && $2 {printf $2 ", "}')"
 
                         resolution="${resolution/primary, }"
                         resolution="${resolution/primary }"