From 738ef06d3f985a3021b7e1a3fc64cd24627358d1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 16 Aug 2017 10:46:19 +1000 Subject: [PATCH 1/2] model: Add support for KVM/QEMU. --- config/config.conf | 2 +- config/travis.conf | 2 +- neofetch | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/config.conf b/config/config.conf index 44b03a0b..64dfd1a3 100644 --- a/config/config.conf +++ b/config/config.conf @@ -9,7 +9,7 @@ print_info() { info underline info "OS" distro - info "Model" model + info "Host" model info "Kernel" kernel info "Uptime" uptime info "Packages" packages diff --git a/config/travis.conf b/config/travis.conf index ad3bac08..137de46e 100644 --- a/config/travis.conf +++ b/config/travis.conf @@ -5,8 +5,8 @@ print_info() { info title info underline - info "Model" model info "OS" distro + info "Host" model info "Kernel" kernel info "Uptime" uptime info "Packages" packages diff --git a/neofetch b/neofetch index e3632240..4eea1b69 100755 --- a/neofetch +++ b/neofetch @@ -342,6 +342,10 @@ get_model() { model="${model//Default string}" model="${model//Not Specified}" model="${model//Type1ProductConfigId}" + + case "$model" in + "Standard PC"*) model="KVM/QEMU" ;; + esac } get_title() { From 69012eb0ff8be1c5038c83ce5157c0bd7742f6a1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 16 Aug 2017 10:49:37 +1000 Subject: [PATCH 2/2] model: Show virtualized hardware too. --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 4eea1b69..8317bba9 100755 --- a/neofetch +++ b/neofetch @@ -344,7 +344,7 @@ get_model() { model="${model//Type1ProductConfigId}" case "$model" in - "Standard PC"*) model="KVM/QEMU" ;; + "Standard PC"*) model="KVM/QEMU (${model})" ;; esac }