This commit is contained in:
Valeria Fadeeva 2024-11-25 12:36:01 +05:00
parent f7a8969a9d
commit 878a5a7f1a
4 changed files with 69 additions and 9 deletions

View File

@ -25,6 +25,7 @@ for (let i = 0; i < allDesktops.length; i++) {
widget.currentConfigGroup = ["General"];
widget.writeConfig("colorizationColor", "#1a7597");
widget.writeConfig("hideWidget", true);
widget.reloadConfig();
}
@ -163,11 +164,13 @@ start_menu.writeConfig("sidebarIconSize", "24");
start_menu.writeConfig("tileLabelAlignment", "center");
start_menu.reloadConfig();
/*Desktops button*/
panel.addWidget("org.kde.plasma.pager");
panel.addWidget("org.kde.plasma.icontasks");
panel.addWidget("org.kde.plasma.panelspacer");
/* Next up is determining whether to add the Input Method Panel
* widget to the panel or not. This is done based on whether
* the system locale's language id is a member of the following
@ -218,7 +221,7 @@ function arrayItemRemove(arr, value) {
});
}
/*systemtray*/
/* systemtray */
let systrayWidget = panel.addWidget("org.kde.plasma.systemtray");
let systemtrayId = systrayWidget.readConfig("SystrayContainmentId");
let systray = desktopById(systemtrayId);
@ -231,15 +234,21 @@ 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*/
/* Icons configuration Dolphin */
const IconsStatic_dolphin = ConfigFile('dolphinrc');
IconsStatic_dolphin.group = 'KFileDialog Settings';
IconsStatic_dolphin.writeEntry('Places Icons Static Size', 16);
IconsStatic_dolphin.reloadConfig();
const PlacesPanel = ConfigFile('dolphinrc');
PlacesPanel.group = 'PlacesPanel';
PlacesPanel.writeEntry('IconSize', 16);
PlacesPanel.reloadConfig();
/******************************/
/*Clock*/
panel_clock = panel.addWidget("org.kde.plasma.digitalclock");
panel_clock.currentConfigGroup = ["Appearance"];
@ -248,9 +257,11 @@ panel_clock.writeConfig("autoFontAndSize", "true");
panel_clock.writeConfig("showSeconds", "Always");
panel_clock.reloadConfig();
/*Notification*/
panel.addWidget("org.kde.plasma.notifications");
/*Hide all windows*/
// panel.addWidget("org.kde.plasma.showdesktop");
win7showdesktop = panel.addWidget("org.kde.plasma.win7showdesktop");
@ -261,16 +272,68 @@ win7showdesktop.writeConfig("pressedColor", "#66555555");
win7showdesktop.writeConfig("size", "7");
win7showdesktop.reloadConfig();
/* accent color config*/
ColorAccetFile = ConfigFile("kdeglobals");
ColorAccetFile.group = "General";
ColorAccetFile.deleteEntry("AccentColor");
ColorAccetFile.deleteEntry("LastUsedCustomAccentColor");
ColorAccetFile.writeEntry("accentColorFromWallpaper", "true");
ColorAccetFile.reloadConfig();
/*Buttons of aurorae*/
/* widgetStyle config*/
WidgetStyleFile = ConfigFile("kdeglobals");
WidgetStyleFile.group = "KDE";
WidgetStyleFile.writeEntry("widgetStyle", "Klassy");
WidgetStyleFile.reloadConfig();
/* Buttons of aurorae */
Buttons = ConfigFile("kwinrc");
Buttons.group = "org.kde.kdecoration2";
Buttons.writeEntry("ButtonsOnLeft", "");
Buttons.writeEntry("ButtonsOnRight", "IAX");
Buttons.reloadConfig();
/* Decorator of aurorae */
Decorator = ConfigFile("kwinrc");
Decorator.group = "org.kde.kdecoration2";
Decorator.writeEntry("library", "org.kde.klassy");
Decorator.writeEntry("theme", "Klassy");
Decorator.reloadConfig();
/* Plugins of aurorae */
Plugins = ConfigFile("kwinrc");
Plugins.group = "Plugins";
Plugins.writeEntry("contrastEnabled", "true");
Plugins.writeEntry("cubeEnabled", "true");
Plugins.writeEntry("desktopchangeosdEnabled", "true");
Plugins.writeEntry("diminactiveEnabled", "true");
Plugins.writeEntry("dimscreenEnabled", "true");
Plugins.writeEntry("fadedesktopEnabled", "true");
Plugins.writeEntry("fadingpopupsEnabled", "false");
Plugins.writeEntry("kinetic_fadingpopupsEnabled", "true");
Plugins.writeEntry("kinetic_scaleEnabled", "true");
Plugins.writeEntry("kinetic_squashEnabled", "true");
Plugins.writeEntry("kwin4_effect_cornersshaderEnabled", "true");
Plugins.writeEntry("kwin4_effect_fadedesktopEnabled", "true");
Plugins.writeEntry("kwin4_effect_shapecornersEnabled", "true");
Plugins.writeEntry("kwin4_effect_translucencyEnabled", "true");
Plugins.writeEntry("maximizeEnabled", "false");
Plugins.writeEntry("presentwindowsEnabled", "false");
Plugins.writeEntry("scaleEnabled", "false");
Plugins.writeEntry("slideEnabled", "false");
Plugins.writeEntry("squashEnabled", "false", "");
Plugins.writeEntry("translucencyEnabled", "true");
/* Windows of aurorae */
Windows = ConfigFile("kwinrc");
Windows.group = "Windows";
Windows.writeEntry("BorderlessMaximizedWindows", "false");
Windows.reloadConfig();
// plasma.loadSerializedLayout(layout);

View File

@ -13,7 +13,6 @@ let addApps = [
["org.telegram.desktop.desktop", "org.telegram.desktop.desktop"],
["discord.desktop", "com.discordapp.Discord.desktop"],
["Zoom.desktop", "us.zoom.Zoom.desktop"],
["firefoxdeveloperedition.desktop", "firefoxdeveloperedition.desktop"],
["firefox-developer-edition.desktop", "firefox-developer-edition.desktop"],
["firefox.desktop", "org.mozilla.firefox.desktop"],
["brave-browser.desktop", "com.brave.Browser.desktop"],
@ -39,7 +38,7 @@ addApps.forEach((i) => {
applications = applications.substring(0, applications.length - 1).split(',');
/*dock*/
/*dock*/
applet.currentConfigGroup = [];
applet.writeConfig("launchers", "")
applet.currentConfigGroup = ["General"];

View File

@ -13,7 +13,6 @@ let addApps = [
["org.telegram.desktop.desktop", "org.telegram.desktop.desktop"],
["discord.desktop", "com.discordapp.Discord.desktop"],
["Zoom.desktop", "us.zoom.Zoom.desktop"],
["firefoxdeveloperedition.desktop", "firefoxdeveloperedition.desktop"],
["firefox-developer-edition.desktop", "firefox-developer-edition.desktop"],
["firefox.desktop", "org.mozilla.firefox.desktop"],
["brave-browser.desktop", "com.brave.Browser.desktop"],
@ -39,7 +38,7 @@ addApps.forEach((i) => {
applications = applications.substring(0, applications.length - 1).split(',');
/*dock*/
/*dock*/
applet.currentConfigGroup = [];
applet.writeConfig("launchers", "")
applet.currentConfigGroup = ["General"];

View File

@ -13,7 +13,6 @@ let addApps = [
["org.telegram.desktop.desktop", "org.telegram.desktop.desktop"],
["discord.desktop", "com.discordapp.Discord.desktop"],
["Zoom.desktop", "us.zoom.Zoom.desktop"],
["firefoxdeveloperedition.desktop", "firefoxdeveloperedition.desktop"],
["firefox-developer-edition.desktop", "firefox-developer-edition.desktop"],
["firefox.desktop", "org.mozilla.firefox.desktop"],
["brave-browser.desktop", "com.brave.Browser.desktop"],
@ -39,7 +38,7 @@ addApps.forEach((i) => {
applications = applications.substring(0, applications.length - 1).split(',');
/*dock*/
/*dock*/
applet.currentConfigGroup = [];
applet.writeConfig("launchers", "")
applet.currentConfigGroup = ["General"];