From 8eeb231774eca6bfee231de80706c1ea3f0600ea Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 6 Jun 2024 13:26:22 +0100 Subject: [PATCH] Set dark mode only on Latitude 7490 --- roles/home-gui/files/gnome-setup.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/home-gui/files/gnome-setup.sh b/roles/home-gui/files/gnome-setup.sh index a3be3a1..624dbe8 100644 --- a/roles/home-gui/files/gnome-setup.sh +++ b/roles/home-gui/files/gnome-setup.sh @@ -1,7 +1,11 @@ #!/bin/sh -# Leave commented for light mode, or uncomment for dark mode. -_acp_dark_mode=1 + +if [ "$(cat /sys/devices/virtual/dmi/id/product_name)" = "Latitude 7490" ] +then + # Leave commented for light mode, or uncomment for dark mode. + _acp_dark_mode=1 +fi test -x /usr/bin/gsettings || (echo "gsettings not found" && exit 1)