mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-10 10:39:22 +01:00
11 lines
561 B
Bash
Executable File
11 lines
561 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
export DISTROID=$(lsb_release -si)
|
|
export DISTROREL=$(lsb_release -sr)
|
|
|
|
if [ "$DISTROID" == "Fedora" ]; then
|
|
export WALLPAPER_PATH="/usr/share/wallpapers/F$DISTROREL/contents/images/3840x2160.png"
|
|
fi
|
|
|
|
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'")}'
|