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");
}
function arrayItemRemove(arr, value) {
return arr.filter(function(elem){
return elem != value;
});
}
/*systemtray*/
var systraprev = panel.addWidget("org.kde.plasma.systemtray");
var SystrayContainmentId = systraprev.readConfig("SystrayContainmentId");
const systray = desktopById(SystrayContainmentId);
let systrayWidget = panel.addWidget("org.kde.plasma.systemtray");
let systemtrayId = systrayWidget.readConfig("SystrayContainmentId");
let systray = desktopById(systemtrayId);
systray.currentConfigGroup = ["General"];
// let ListTrays = systray.readConfig("extraItems");
// let ListTrays2 = ListTrays.replace(",org.kde.plasma.notifications", "");
// systray.writeConfig("extraItems", ListTrays2);
let extraItems = systray.readConfig("extraItems").split(",");
extraItems = arrayItemRemove(extraItems, "org.kde.plasma.notifications");
systray.writeConfig("extraItems", extraItems);
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");
/*Cambiando configuracion Dolphin*/