From de9e5f0bedd4610e91ece28c28fc389179bd9c1e Mon Sep 17 00:00:00 2001 From: amalthomas-exe Date: Fri, 1 Apr 2022 16:45:39 +0530 Subject: [PATCH] Initial support for other DEs --- main.py | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index f168aa6..ddd8e47 100755 --- a/main.py +++ b/main.py @@ -10,9 +10,38 @@ def setDEWallpaper(de,style): type = ".png" else: type = ".jpg" - if de=="plasma": + + if de in ["/usr/share/xsessions/plasma","NEON","neon","PLASMA","Plasma","plasma","KDE","Kde","kde"]: + print("Inside",de) os.system("qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var allDesktops = desktops();print (allDesktops);for (i=0;i