aboutsummaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2023-09-10 16:43:25 +0200
committer Eric Hameleers <alien@slackware.com>2023-09-10 16:43:25 +0200
commit4336a52b663996183e75731f899ec9fe567dd52f (patch)
tree59e6fed41834b5d2b2e6babe9b7c23b3d6c0b7a1 /make_slackware_live.sh
parentf8158d641667055e7f3248561a69500d1cf673a1 (diff)
downloadliveslak-4336a52b663996183e75731f899ec9fe567dd52f.tar.gz
liveslak-4336a52b663996183e75731f899ec9fe567dd52f.tar.xz
LEAN: add a new Plasma background with a dark theme
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 9ee55ab..71f39f6 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1269,6 +1269,18 @@ FillMode=2
Image=file:///usr/share/${LIVEMAIN}/${LIVEDE,,}/background.jpg
EOT
+# Is a dark theme requested to match the background atmosphere?
+if [ -f ${LIVE_TOOLDIR}/media/${LIVEDE,,}/bg/theme ]; then
+ if [ "$(grep -v '^#' ${LIVE_TOOLDIR}/media/${LIVEDE,,}/bg/theme)" == "dark" ]
+ then
+ mkdir -p ${LIVE_ROOTDIR}/home/${LIVEUID}/.config
+ cat <<EOT > ${LIVE_ROOTDIR}/home/${LIVEUID}/.config/plasmarc
+[Theme]
+name=breeze-dark
+EOT
+ fi
+fi
+
} # End of plasma5_custom_bg()
# ---------------------------------------------------------------------------