darkman: stop using the examples

This commit is contained in:
Aminda Suomalainen 2024-07-19 21:16:12 +03:00
parent 86e2ec0aa6
commit 7398981af0
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
4 changed files with 19 additions and 9 deletions

View File

@ -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

View File

@ -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<allDesktops.length;i++) {d = allDesktops[i];d.wallpaperPlugin = "org.kde.image";d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General");d.writeConfig("Image", "file://'$WALLPAPER_PATH'")}'

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# This is all adapted from /usr/share/doc/darkman/examples/light-mode.d/
# Notify of light theme switch
(notify-send --app-name="darkman" --urgency=low --icon=weather-clear "Let there be light" &)
# GTK Theme
(gsettings set org.gnome.desktop.interface gtk-theme Breeze &)
(dbus-send --session --dest=org.kde.GtkConfig --type=method_call /GtkConfig org.kde.GtkConfig.setGtkTheme "string:Breeze" &)
# Xfce theme?
(exec xfconf-query -c xsettings -p /Net/ThemeName -s 'Breeze' &)
# Plasma
(lookandfeeltool --apply "org.kde.breeze.desktop" &)

View File

@ -1,2 +0,0 @@
#!/usr/bin/env bash
lookandfeeltool --apply "org.fedoraproject.fedora.desktop"