Skip to content

Instantly share code, notes, and snippets.

@tisyang
Created February 6, 2023 10:29
Show Gist options
  • Save tisyang/d3c5fcc60fdbe5644bba47909d2515ad to your computer and use it in GitHub Desktop.
Save tisyang/d3c5fcc60fdbe5644bba47909d2515ad to your computer and use it in GitHub Desktop.
Varity set_wallpaper script only change main screen wallpaper under KDE Plasma
QT_SELECT=5 $qdbus_command org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "
for (i in activities()) {
activityID = activities()[i];
desktops = desktopsForActivity(activityID)
for (j in desktops) {
d = desktops[j];
if (d.screen == 0) {
d.wallpaperPlugin = 'org.kde.image';
d.currentConfigGroup = Array('Wallpaper', 'org.kde.image', 'General');
d.writeConfig('Image', 'file://""$WP""')
}
}
}
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment