From 878a5a7f1a2af8cf8ce13a8731b884b6e81b2e8e Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Mon, 25 Nov 2024 12:36:01 +0500 Subject: [PATCH] Update --- .../contents/layout.js | 69 ++++++++++++++++++- .../org.kde.plasma.icontasks.js | 3 +- .../org.kde.plasma.icontasks.js | 3 +- .../org.kde.plasma.icontasks.js | 3 +- 4 files changed, 69 insertions(+), 9 deletions(-) diff --git a/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js b/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js index 2577cf0..14d3938 100644 --- a/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js +++ b/melawy-kde-theme/usr/share/plasma/layout-templates/org.github.Melawy.desktop.MelawyPanel/contents/layout.js @@ -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); diff --git a/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-dark.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js b/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-dark.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js index 7ea186e..b240066 100644 --- a/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-dark.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js +++ b/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-dark.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js @@ -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"]; diff --git a/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-gray.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js b/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-gray.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js index 7ea186e..b240066 100644 --- a/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-gray.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js +++ b/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-gray.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js @@ -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"]; diff --git a/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-light.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js b/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-light.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js index 7ea186e..b240066 100644 --- a/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-light.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js +++ b/melawy-kde-theme/usr/share/plasma/look-and-feel/com.github.Melawy.Melawy-round-light.desktop/contents/plasmoidsetupscripts/org.kde.plasma.icontasks.js @@ -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"];