This commit is contained in:
Valeria Fadeeva 2025-01-04 13:49:24 +05:00
parent 096c971547
commit 1dfa290371
1 changed files with 23 additions and 18 deletions

View File

@ -1,17 +1,22 @@
let plasma = getApiVersion(1); // let plasma = getApiVersion(1);
let allDesktops = desktops(); let allDesktops = desktops();
for (i=0;i<allDesktops.length;i++) { for (i=0;i<allDesktops.length;i++) {
desktop = allDesktops[i]; desktop = allDesktops[i];
desktop.wallpaperPlugin = "a2n.blur"; desktop.wallpaperPlugin = "a2n.blur";
desktop.currentConfigGroup = Array("Wallpaper", "a2n.blur", "General");
desktop.writeConfig("FillMode", 0);
} }
let desktopsArray = desktopsForActivity(currentActivity()); let desktopsArray = desktopsForActivity(currentActivity());
for(j = 0; j < desktopsArray.length; j++) { for(j = 0; j < desktopsArray.length; j++) {
desktopsArray[j].wallpaperPlugin = 'a2n.blur'; desktopsArray[j].wallpaperPlugin = 'a2n.blur';
desktopsArray[j].currentConfigGroup = Array("Wallpaper", "a2n.blur", "General");
desktopsArray[j].writeConfig("FillMode", 0);
} }
// for (i=0;i<allDesktops.length;i++) { // for (i=0;i<allDesktops.length;i++) {
// desktop = allDesktops[i]; // desktop = allDesktops[i];
// desktop.wallpaperPlugin = "org.kde.slideshow"; // desktop.wallpaperPlugin = "org.kde.slideshow";
@ -175,25 +180,25 @@ start_menu.writeConfig("systemFavorites", "");
start_menu.writeConfig("favorites", `${applications}`); start_menu.writeConfig("favorites", `${applications}`);
start_menu.writeConfig("appDescription", "hidden"); start_menu.writeConfig("appDescription", "hidden");
start_menu.writeConfig("appListWidth", "400"); start_menu.writeConfig("appListWidth", 400);
start_menu.writeConfig("compactMode", "true"); start_menu.writeConfig("compactMode", "true");
start_menu.writeConfig("defaultAppListView", "TilesOnly"); start_menu.writeConfig("defaultAppListView", "TilesOnly");
start_menu.writeConfig("defaultTileColor", "#e4606060"); start_menu.writeConfig("defaultTileColor", "#e4606060");
start_menu.writeConfig("defaultTileGradient", "true"); start_menu.writeConfig("defaultTileGradient", "true");
start_menu.writeConfig("favGridCols", "6"); start_menu.writeConfig("favGridCols", 6);
start_menu.writeConfig("numberRows", "5"); start_menu.writeConfig("numberRows", 5);
start_menu.writeConfig("floating", "true"); start_menu.writeConfig("floating", "true");
start_menu.writeConfig("fullscreen", "true"); start_menu.writeConfig("fullscreen", "true");
start_menu.writeConfig("groupLabelAlignment", "center"); start_menu.writeConfig("groupLabelAlignment", "center");
start_menu.writeConfig("menuItemHeight", "24"); start_menu.writeConfig("menuItemHeight", 24);
start_menu.writeConfig("numRecentApps", "10"); start_menu.writeConfig("numRecentApps", 10);
start_menu.writeConfig("popupHeight", "700"); start_menu.writeConfig("popupHeight", 700);
start_menu.writeConfig("searchFieldFollowsTheme", "true"); start_menu.writeConfig("searchFieldFollowsTheme", "true");
start_menu.writeConfig("searchFieldHeight", "36"); start_menu.writeConfig("searchFieldHeight", 36);
start_menu.writeConfig("searchResultsMerged", "false"); start_menu.writeConfig("searchResultsMerged", "false");
start_menu.writeConfig("sidebarButtonSize", "36"); start_menu.writeConfig("sidebarButtonSize", 36);
start_menu.writeConfig("sidebarFollowsTheme", "true"); start_menu.writeConfig("sidebarFollowsTheme", "true");
start_menu.writeConfig("sidebarIconSize", "24"); start_menu.writeConfig("sidebarIconSize", 24);
start_menu.writeConfig("tileLabelAlignment", "center"); start_menu.writeConfig("tileLabelAlignment", "center");
// 0 = Auto, 1 = Center, 2 = Center Bottom // 0 = Auto, 1 = Center, 2 = Center Bottom
@ -288,9 +293,9 @@ PlacesPanel.writeEntry('IconSize', 16);
/*Clock*/ /*Clock*/
panel_clock = panel.addWidget("org.kde.plasma.digitalclock"); panel_clock = panel.addWidget("org.kde.plasma.digitalclock");
panel_clock.currentConfigGroup = ["Appearance"]; panel_clock.currentConfigGroup = ["Appearance"];
panel_clock.writeConfig("fontSize", "12"); panel_clock.writeConfig("fontSize", 12);
panel_clock.writeConfig("autoFontAndSize", "true"); panel_clock.writeConfig("autoFontAndSize", "true");
panel_clock.writeConfig("showSeconds", "Always"); panel_clock.writeConfig("showSeconds", 2);
/*Notification*/ /*Notification*/
@ -304,7 +309,7 @@ win7showdesktop.currentConfigGroup = ["General"];
win7showdesktop.writeConfig("edgeColor", "#66888888"); win7showdesktop.writeConfig("edgeColor", "#66888888");
win7showdesktop.writeConfig("hoveredColor", "#66777777"); win7showdesktop.writeConfig("hoveredColor", "#66777777");
win7showdesktop.writeConfig("pressedColor", "#66555555"); win7showdesktop.writeConfig("pressedColor", "#66555555");
win7showdesktop.writeConfig("size", "7"); win7showdesktop.writeConfig("size", 7);
/* accent color config*/ /* accent color config*/
@ -392,14 +397,14 @@ Plugins.writeEntry("translucencyEnabled", "true");
/* Effect-overview */ /* Effect-overview */
Overview = ConfigFile("kwinrc"); Overview = ConfigFile("kwinrc");
Overview.group = "Effect-overview"; Overview.group = "Effect-overview";
Overview.writeEntry("BorderActivate", "9"); Overview.writeEntry("BorderActivate", 9);
/* Effect-translucency */ /* Effect-translucency */
Translucency = ConfigFile("kwinrc"); Translucency = ConfigFile("kwinrc");
Translucency.group = "Effect-translucency"; Translucency.group = "Effect-translucency";
Translucency.writeEntry("Inactive", "95"); Translucency.writeEntry("Inactive", 95);
Translucency.writeEntry("MoveResize", "85"); Translucency.writeEntry("MoveResize", 85);
/* PrimaryOutline */ /* PrimaryOutline */