From 72799a842c14b20965e1644482f903fff3b0cf2a Mon Sep 17 00:00:00 2001 From: Thomas <76893724+thomastubby@users.noreply.github.com> Date: Sat, 6 Apr 2024 17:01:21 -0400 Subject: [PATCH 1/2] added MAC custom info added function that will pull and display MAC address --- neofetch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neofetch b/neofetch index 48b96d215..c8aee466f 100755 --- a/neofetch +++ b/neofetch @@ -3923,6 +3923,11 @@ get_public_ip() { fi } +get_hwaddr() { + hwaddr="$(ip route get 1 | awk '{print $5}')" + hwaddr="$(ip link show dev "$hwaddr" | awk '/ether/ {print $2}')" +} + get_users() { users="$(who | awk '!seen[$1]++ {printf $1 ", "}')" users="${users%\,*}" From 7a1d90b1d924a7f293b36a1a3c8a9cc97836865b Mon Sep 17 00:00:00 2001 From: Thomas <76893724+thomastubby@users.noreply.github.com> Date: Sat, 6 Apr 2024 21:22:29 -0400 Subject: [PATCH 2/2] added MAC custom info added function that will pull and display MAC address