2024-07-19 20:59:09 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-07-22 11:11:47 +02:00
|
|
|
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.bash
|
2024-07-19 20:59:09 +02:00
|
|
|
|
2024-07-20 06:27:54 +02:00
|
|
|
if [ -f ~/.wallpaper.light ]; then
|
|
|
|
export WALLPAPER_PATH="$HOME/.wallpaper.light"
|
|
|
|
elif [ "$DISTROID" == "Fedora" ]; then
|
2024-07-19 20:59:09 +02:00
|
|
|
export WALLPAPER_PATH="/usr/share/wallpapers/F$DISTROREL/contents/images/3840x2160.png"
|
2024-07-20 07:01:17 +02:00
|
|
|
elif [ "$DISTROID" == "Kali" ]; then
|
|
|
|
export WALLPAPER_PATH="/usr/share/wallpapers/KaliMetal/contents/images/3840x2160.jpg"
|
2024-07-19 20:59:09 +02:00
|
|
|
fi
|
|
|
|
|
2024-07-20 07:01:17 +02:00
|
|
|
echo "Wallpaper: $WALLPAPER_PATH"
|
|
|
|
|
2024-07-19 20:59:09 +02:00
|
|
|
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'")}'
|