From 4403daa9c8531418fe6c65cea10f39f92f93bc64 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 17 Jul 2024 10:42:04 +0300 Subject: [PATCH] bash/darkman: add scripts for Fedora theme and wallpaper --- bash/darkman/.gitignore | 1 + bash/darkman/dark-mode.d/99-kde-wallpaper-fedora.sh | 11 +++++++++++ .../darkman/dark-mode.d/zz-kde-plasma-theme-fedora.sh | 2 ++ bash/darkman/darkman-setup.bash | 1 + bash/darkman/light-mode.d/.gitignore | 1 + bash/darkman/light-mode.d/99-kde-wallpaper-fedora.sh | 11 +++++++++++ .../light-mode.d/zz-kde-plasma-theme-fedora.sh | 1 + 7 files changed, 28 insertions(+) create mode 100644 bash/darkman/.gitignore create mode 100755 bash/darkman/dark-mode.d/99-kde-wallpaper-fedora.sh create mode 100755 bash/darkman/dark-mode.d/zz-kde-plasma-theme-fedora.sh create mode 120000 bash/darkman/darkman-setup.bash create mode 100644 bash/darkman/light-mode.d/.gitignore create mode 100755 bash/darkman/light-mode.d/99-kde-wallpaper-fedora.sh create mode 120000 bash/darkman/light-mode.d/zz-kde-plasma-theme-fedora.sh diff --git a/bash/darkman/.gitignore b/bash/darkman/.gitignore new file mode 100644 index 0000000..1b28872 --- /dev/null +++ b/bash/darkman/.gitignore @@ -0,0 +1 @@ +darkman-setup.bash diff --git a/bash/darkman/dark-mode.d/99-kde-wallpaper-fedora.sh b/bash/darkman/dark-mode.d/99-kde-wallpaper-fedora.sh new file mode 100755 index 0000000..9307d11 --- /dev/null +++ b/bash/darkman/dark-mode.d/99-kde-wallpaper-fedora.sh @@ -0,0 +1,11 @@ +#!/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_dark/3840x2160.png" + +qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print (allDesktops);for (i=0;i