Created
January 31, 2022 18:04
-
-
Save ZaWertun/c95b4135b92d8951a29e39fe5dddbafc to your computer and use it in GitHub Desktop.
KDE Plasma - list desktop wallpapers
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
desktops().forEach((desktop, index) => { | |
desktop.currentConfigGroup = ['Wallpaper', desktop.wallpaperPlugin, 'General']; | |
if (desktop.screen != -1) { | |
let image = desktop.readConfig('Image'); | |
print(`Desktop ${index}: ${image}\n`); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment