mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
16 lines
801 B
Bash
Executable File
16 lines
801 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
. ~/.local/share/dark-mode.d/00-do-not-repeat-yourself.bash
|
|
|
|
if [ -f ~/.wallpaper.dark ]; then
|
|
export WALLPAPER_PATH="$HOME/.wallpaper.dark"
|
|
elif [ "$DISTROID" == "Fedora" ]; then
|
|
export WALLPAPER_PATH="/usr/share/wallpapers/F$DISTROREL/contents/images_dark/3840x2160.png"
|
|
elif [ "$DISTROID" == "Kali" ]; then
|
|
export WALLPAPER_PATH="/usr/share/wallpapers/KaliMetalDark/contents/images/3840x2160.png"
|
|
fi
|
|
|
|
echo "Wallpaper: $WALLPAPER_PATH"
|
|
|
|
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'")}'
|