1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/neofetch/proc-fb-gpu.patch
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- neofetch-7.1.0/neofetch~ 2020-08-02 20:37:41.000000000 +0200
15 +++ neofetch-7.1.0/neofetch 2024-01-07 16:46:36.927215262 +0100
17 '/"Display|"3D|"VGA/ {a[$0] = $1 " " $3 " " $4}
18 END {for(i in a) {if(!seen[a[i]]++) print a[i]}}')"
19 IFS=$'\n' read -d "" -ra gpus <<< "$gpu_cmd"
20 + [ ! "$gpu" ] && IFS=$'\n' read -d "" -ra gpus <<< $(sed 's/^[[:digit:]] //' < /proc/fb)
22 # Remove duplicate Intel Graphics outputs.
23 # This fixes cases where the outputs are both