This commit is contained in:
Valeria Fadeeva 2023-11-21 11:37:29 +05:00
parent 0afa758821
commit 98fccfb6f0
1 changed files with 15 additions and 6 deletions

View File

@ -128,15 +128,24 @@ if (langIds.indexOf(languageId) != -1) {
panel.addWidget("org.kde.plasma.kimpanel"); panel.addWidget("org.kde.plasma.kimpanel");
} }
function arrayItemRemove(arr, value) {
return arr.filter(function(elem){
return elem != value;
});
}
/*systemtray*/ /*systemtray*/
var systraprev = panel.addWidget("org.kde.plasma.systemtray"); let systrayWidget = panel.addWidget("org.kde.plasma.systemtray");
var SystrayContainmentId = systraprev.readConfig("SystrayContainmentId"); let systemtrayId = systrayWidget.readConfig("SystrayContainmentId");
const systray = desktopById(SystrayContainmentId); let systray = desktopById(systemtrayId);
systray.currentConfigGroup = ["General"]; systray.currentConfigGroup = ["General"];
// let ListTrays = systray.readConfig("extraItems"); let extraItems = systray.readConfig("extraItems").split(",");
// let ListTrays2 = ListTrays.replace(",org.kde.plasma.notifications", ""); extraItems = arrayItemRemove(extraItems, "org.kde.plasma.notifications");
// systray.writeConfig("extraItems", ListTrays2); systray.writeConfig("extraItems", extraItems);
systray.writeConfig("iconSpacing", 2); systray.writeConfig("iconSpacing", 2);
systray.reloadConfig();
// systray.writeConfig("shownItems", "org.kde.plasma.mediacontroller,org.kde.plasma.volume,org.kde.plasma.networkmanagement,org.kde.plasma.weather,org.kde.plasma.battery"); // systray.writeConfig("shownItems", "org.kde.plasma.mediacontroller,org.kde.plasma.volume,org.kde.plasma.networkmanagement,org.kde.plasma.weather,org.kde.plasma.battery");
/*Cambiando configuracion Dolphin*/ /*Cambiando configuracion Dolphin*/