From 7398981af0e2309ebc0370c669daef6b878e0ca2 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 19 Jul 2024 21:16:12 +0300 Subject: [PATCH] darkman: stop using the examples --- bash/darkman-setup.bash | 3 +++ ...e-wallpaper-fedora.sh => fedora-wallpaper.sh} | 7 ------- bash/darkman/light-mode.d/fedora.sh | 16 ++++++++++++++++ .../light-mode.d/zz-kde-plasma-theme-fedora.sh | 2 -- 4 files changed, 19 insertions(+), 9 deletions(-) rename bash/darkman/light-mode.d/{zz-kde-wallpaper-fedora.sh => fedora-wallpaper.sh} (60%) create mode 100755 bash/darkman/light-mode.d/fedora.sh delete mode 100755 bash/darkman/light-mode.d/zz-kde-plasma-theme-fedora.sh diff --git a/bash/darkman-setup.bash b/bash/darkman-setup.bash index 12992eb..8d07616 100755 --- a/bash/darkman-setup.bash +++ b/bash/darkman-setup.bash @@ -11,6 +11,9 @@ if [ ! -d ~/.local/share/dark-mode.d ]; then echo "Ensure ~/.local/share/ has directories {dark,light}-mode.d/" fi +echo "Ctrl-C unless you want the examples... Sleeping for 3." +sleep 3 + if [ -d /usr/share/doc/darkman/examples ]; then export EXAMPLESDIR="/usr/share/doc/darkman/examples" elif [ -d /usr/local/share/doc/darkman/examples ]; then diff --git a/bash/darkman/light-mode.d/zz-kde-wallpaper-fedora.sh b/bash/darkman/light-mode.d/fedora-wallpaper.sh similarity index 60% rename from bash/darkman/light-mode.d/zz-kde-wallpaper-fedora.sh rename to bash/darkman/light-mode.d/fedora-wallpaper.sh index 91ac99e..9873e88 100755 --- a/bash/darkman/light-mode.d/zz-kde-wallpaper-fedora.sh +++ b/bash/darkman/light-mode.d/fedora-wallpaper.sh @@ -1,11 +1,4 @@ #!/usr/bin/env bash - -# To change the wallpaper on all desktops, you have to run a PlasmaShell script -# and iterate over all available desktops. This examples uses the default dark -# wallpaper on Manjaro (Bamboo). - -# Script credit @mamantoha: https://gist.github.com/mamantoha/c01363e5c791e8324d6248b09cf29bbb - WALLPAPER_PATH="/usr/share/wallpapers/F$(lsb_release -sr)/contents/images/3840x2160.png" qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print (allDesktops);for (i=0;i