Created
February 6, 2023 10:29
-
-
Save tisyang/d3c5fcc60fdbe5644bba47909d2515ad to your computer and use it in GitHub Desktop.
Varity set_wallpaper script only change main screen wallpaper under KDE Plasma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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