Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Commit 852bdf6

Browse files
committed
update the other files
1 parent 5b251d1 commit 852bdf6

File tree

2 files changed

+50
-50
lines changed

2 files changed

+50
-50
lines changed

look-and-feel/org.kde.nitrux.desktop/contents/layouts/org.kde.plasma.desktop-layout.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
33
// The license used for this file and its contents is: BSD-3-Clause /
44
// /
55
// Copyright <2023> <Uri Herrera <[email protected]>> /
6-
// /
6+
// /
77
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: /
88
// /
99
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. /
@@ -19,17 +19,11 @@
1919
// BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE /
2020
// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, /
2121
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /
22-
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
22+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2323

2424
// Set Plasma Desktop Scripting API.
2525
var plasma = getApiVersion(1)
2626

27-
// Remove desktop toolbox.
28-
var activityId = activityIds[0]
29-
var activity = desktopById(activityId)
30-
activity.currentConfigGroup = ["General"]
31-
activity.writeConfig("showToolbox", false)
32-
3327
// Set wallpaper plugin.
3428
var allDesktops = desktops();
3529
for (i=0;i<allDesktops.length;i++){
@@ -40,11 +34,12 @@ for (i=0;i<allDesktops.length;i++){
4034

4135
// Top panel.
4236
const menuPanel = new Panel
43-
var menuPanelScreen = menuPanel.screen
4437
menuPanel.location = "top"
4538
menuPanel.height = Math.round(gridUnit * 1.5)
4639

47-
// Restrict horizontal top panel to a maximum size of a 21:9 monitor
40+
// Restrict horizontal top panel to a maximum size of a 21:9 monitor.
41+
var menuPanelScreen = menuPanel.screen
42+
4843
const maximumAspectRatio = 21/9;
4944
if (menuPanel.formFactor === "horizontal") {
5045
const geo = screenGeometry(menuPanelScreen);
@@ -109,22 +104,27 @@ digitalClock.writeConfig("showSeconds", true)
109104

110105
// Bottom panel (Dock).
111106
var bottomPanel = new Panel
112-
var bottomPanelScreen = bottomPanel.screen
113-
bottomPanel.location = "bottom"
114-
bottomPanel.height = 2 * Math.floor(gridUnit * 2.8 / 2)
107+
bottomPanel.location = "floating"
108+
bottomPanel.height = 2 * Math.floor(gridUnit * 2.9 / 2)
115109
bottomPanel.hiding = "windowscover"
110+
//bottomPanel.offset = 1
111+
bottomPanel.alignment = "center"
112+
bottomPanel.minimumLength = 1000
113+
bottomPanel.maximumLength = 2160
116114

117-
// Restrict horizontal bottom panel to a maximum size of a 21:9 monitor
118-
if (bottomPanel.formFactor === "horizontal") {
119-
const geo = screenGeometry(bottomPanelScreen);
120-
const maximumWidth = Math.ceil(geo.height * maximumAspectRatio);
115+
// Restrict horizontal top panel to a maximum size of a 21:9 monitor
116+
// var bottomPanelScreen = bottomPanel.screen
121117

122-
if (geo.width > maximumWidth) {
123-
bottomPanel.alignment = "center";
124-
bottomPanel.minimumLength = 1000;
125-
bottomPanel.maximumLength = 250;
126-
}
127-
}
118+
// if (menuPanel.formFactor === "horizontal") {
119+
// const geo = screenGeometry(bottomPanelScreen);
120+
// const maximumWidth = Math.ceil(geo.height * maximumAspectRatio);
121+
122+
// if (geo.width > maximumWidth) {
123+
// bottomPanel.alignment = "center";
124+
// bottomPanel.minimumLength = maximumWidth;
125+
// bottomPanel.maximumLength = maximumWidth;
126+
// }
127+
// }
128128

129129
// Add and configure bottom panel widgets in order of placement.
130130
var bottomPanelSeparatorLeft = bottomPanel.addWidget("org.kde.plasma.panelspacer")
@@ -136,7 +136,7 @@ plasmaDrawer.currentConfigGroup = ["Configuration", "General"]
136136
plasmaDrawer.writeConfig("animationSpeedMultiplier", "1.3000000000000003")
137137
plasmaDrawer.writeConfig("appIconSize", "128")
138138
plasmaDrawer.writeConfig("backgroundOpacity", "90")
139-
plasmaDrawer.writeConfig("hiddenApplications", "appimagekit_e00131cdaf6606b58dc63e02f6f9667a-appimage-cli-tool.desktop,appimagekit_691afdd8254cdd6210cad9fe09dc3c0c-appimage-cli-tool.desktop,appimagekit_c622bf8ce674464048e56ad7b1c9c3ec-AppImageUpdate.desktop,appimagekit_33264d7382d4da20e2058b56c70584b3-Firefox.desktop,appimagekit_13e096f2a11dd27115677128a912dbba-Firefox.desktop,org.kde.kmenuedit.desktop,appimagekit_cc22cf1990cbd4ea25c2cd3f9236c9d9-appimage-cli-tool.desktop,org.maui.settings.desktop,org.kde.fiery.desktop,org.kde.latte-dock.desktop,org.kde.agenda.desktop,org.kde.communicator.desktop,appimagekit_654a6860494c0adba861ecb314e23fe4-Firefox.desktop,org.kde.booth.desktop,org.fcitx.Fcitx5.desktop,setup-mozc.desktop,im-config.desktop,appimagekit_89688fd275690f87364cb0aa03793f66-Hardware_Probe.desktop,appimagekit_18fdaa3ea99118c7b9bee6bc187e2d70-Hardware_Probe.desktop,org.kde.kwalletmanager5.desktop")
139+
plasmaDrawer.writeConfig("hiddenApplications", ["appimagekit_e00131cdaf6606b58dc63e02f6f9667a-appimage-cli-tool.desktop","appimagekit_691afdd8254cdd6210cad9fe09dc3c0c-appimage-cli-tool.desktop","appimagekit_c622bf8ce674464048e56ad7b1c9c3ec-AppImageUpdate.desktop","appimagekit_33264d7382d4da20e2058b56c70584b3-Firefox.desktop","appimagekit_13e096f2a11dd27115677128a912dbba-Firefox.desktop","org.kde.kmenuedit.desktop","appimagekit_cc22cf1990cbd4ea25c2cd3f9236c9d9-appimage-cli-tool.desktop","org.maui.settings.desktop","org.kde.fiery.desktop","org.kde.latte-dock.desktop","org.kde.agenda.desktop","org.kde.communicator.desktop","appimagekit_654a6860494c0adba861ecb314e23fe4-Firefox.desktop","org.kde.booth.desktop","org.fcitx.Fcitx5.desktop","setup-mozc.desktop","im-config.desktop","appimagekit_89688fd275690f87364cb0aa03793f66-Hardware_Probe.desktop","appimagekit_18fdaa3ea99118c7b9bee6bc187e2d70-Hardware_Probe.desktop","org.kde.kwalletmanager5.desktop"]);
140140
plasmaDrawer.writeConfig("numberColumns", "6")
141141
plasmaDrawer.writeConfig("numberRows", "4")
142142
plasmaDrawer.writeConfig("searchIconSize", "250")

look-and-feel/org.kde.nitrux.mix.desktop/contents/layouts/org.kde.plasma.desktop-layout.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
33
// The license used for this file and its contents is: BSD-3-Clause /
44
// /
55
// Copyright <2023> <Uri Herrera <[email protected]>> /
6-
// /
6+
// /
77
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: /
88
// /
99
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. /
@@ -19,17 +19,11 @@
1919
// BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE /
2020
// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, /
2121
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. /
22-
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
22+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2323

2424
// Set Plasma Desktop Scripting API.
2525
var plasma = getApiVersion(1)
2626

27-
// Remove desktop toolbox.
28-
var activityId = activityIds[0]
29-
var activity = desktopById(activityId)
30-
activity.currentConfigGroup = ["General"]
31-
activity.writeConfig("showToolbox", false)
32-
3327
// Set wallpaper plugin.
3428
var allDesktops = desktops();
3529
for (i=0;i<allDesktops.length;i++){
@@ -40,11 +34,12 @@ for (i=0;i<allDesktops.length;i++){
4034

4135
// Top panel.
4236
const menuPanel = new Panel
43-
var menuPanelScreen = menuPanel.screen
4437
menuPanel.location = "top"
4538
menuPanel.height = Math.round(gridUnit * 1.5)
4639

47-
// Restrict horizontal top panel to a maximum size of a 21:9 monitor
40+
// Restrict horizontal top panel to a maximum size of a 21:9 monitor.
41+
var menuPanelScreen = menuPanel.screen
42+
4843
const maximumAspectRatio = 21/9;
4944
if (menuPanel.formFactor === "horizontal") {
5045
const geo = screenGeometry(menuPanelScreen);
@@ -109,22 +104,27 @@ digitalClock.writeConfig("showSeconds", true)
109104

110105
// Bottom panel (Dock).
111106
var bottomPanel = new Panel
112-
var bottomPanelScreen = bottomPanel.screen
113-
bottomPanel.location = "bottom"
114-
bottomPanel.height = 2 * Math.floor(gridUnit * 2.8 / 2)
107+
bottomPanel.location = "floating"
108+
bottomPanel.height = 2 * Math.floor(gridUnit * 2.9 / 2)
115109
bottomPanel.hiding = "windowscover"
110+
//bottomPanel.offset = 1
111+
bottomPanel.alignment = "center"
112+
bottomPanel.minimumLength = 1000
113+
bottomPanel.maximumLength = 2160
116114

117-
// Restrict horizontal bottom panel to a maximum size of a 21:9 monitor
118-
if (bottomPanel.formFactor === "horizontal") {
119-
const geo = screenGeometry(bottomPanelScreen);
120-
const maximumWidth = Math.ceil(geo.height * maximumAspectRatio);
115+
// Restrict horizontal top panel to a maximum size of a 21:9 monitor
116+
// var bottomPanelScreen = bottomPanel.screen
121117

122-
if (geo.width > maximumWidth) {
123-
bottomPanel.alignment = "center";
124-
bottomPanel.minimumLength = 1000;
125-
bottomPanel.maximumLength = 250;
126-
}
127-
}
118+
// if (menuPanel.formFactor === "horizontal") {
119+
// const geo = screenGeometry(bottomPanelScreen);
120+
// const maximumWidth = Math.ceil(geo.height * maximumAspectRatio);
121+
122+
// if (geo.width > maximumWidth) {
123+
// bottomPanel.alignment = "center";
124+
// bottomPanel.minimumLength = maximumWidth;
125+
// bottomPanel.maximumLength = maximumWidth;
126+
// }
127+
// }
128128

129129
// Add and configure bottom panel widgets in order of placement.
130130
var bottomPanelSeparatorLeft = bottomPanel.addWidget("org.kde.plasma.panelspacer")
@@ -136,7 +136,7 @@ plasmaDrawer.currentConfigGroup = ["Configuration", "General"]
136136
plasmaDrawer.writeConfig("animationSpeedMultiplier", "1.3000000000000003")
137137
plasmaDrawer.writeConfig("appIconSize", "128")
138138
plasmaDrawer.writeConfig("backgroundOpacity", "90")
139-
plasmaDrawer.writeConfig("hiddenApplications", "appimagekit_e00131cdaf6606b58dc63e02f6f9667a-appimage-cli-tool.desktop,appimagekit_691afdd8254cdd6210cad9fe09dc3c0c-appimage-cli-tool.desktop,appimagekit_c622bf8ce674464048e56ad7b1c9c3ec-AppImageUpdate.desktop,appimagekit_33264d7382d4da20e2058b56c70584b3-Firefox.desktop,appimagekit_13e096f2a11dd27115677128a912dbba-Firefox.desktop,org.kde.kmenuedit.desktop,appimagekit_cc22cf1990cbd4ea25c2cd3f9236c9d9-appimage-cli-tool.desktop,org.maui.settings.desktop,org.kde.fiery.desktop,org.kde.latte-dock.desktop,org.kde.agenda.desktop,org.kde.communicator.desktop,appimagekit_654a6860494c0adba861ecb314e23fe4-Firefox.desktop,org.kde.booth.desktop,org.fcitx.Fcitx5.desktop,setup-mozc.desktop,im-config.desktop,appimagekit_89688fd275690f87364cb0aa03793f66-Hardware_Probe.desktop,appimagekit_18fdaa3ea99118c7b9bee6bc187e2d70-Hardware_Probe.desktop,org.kde.kwalletmanager5.desktop")
139+
plasmaDrawer.writeConfig("hiddenApplications", ["appimagekit_e00131cdaf6606b58dc63e02f6f9667a-appimage-cli-tool.desktop","appimagekit_691afdd8254cdd6210cad9fe09dc3c0c-appimage-cli-tool.desktop","appimagekit_c622bf8ce674464048e56ad7b1c9c3ec-AppImageUpdate.desktop","appimagekit_33264d7382d4da20e2058b56c70584b3-Firefox.desktop","appimagekit_13e096f2a11dd27115677128a912dbba-Firefox.desktop","org.kde.kmenuedit.desktop","appimagekit_cc22cf1990cbd4ea25c2cd3f9236c9d9-appimage-cli-tool.desktop","org.maui.settings.desktop","org.kde.fiery.desktop","org.kde.latte-dock.desktop","org.kde.agenda.desktop","org.kde.communicator.desktop","appimagekit_654a6860494c0adba861ecb314e23fe4-Firefox.desktop","org.kde.booth.desktop","org.fcitx.Fcitx5.desktop","setup-mozc.desktop","im-config.desktop","appimagekit_89688fd275690f87364cb0aa03793f66-Hardware_Probe.desktop","appimagekit_18fdaa3ea99118c7b9bee6bc187e2d70-Hardware_Probe.desktop","org.kde.kwalletmanager5.desktop"]);
140140
plasmaDrawer.writeConfig("numberColumns", "6")
141141
plasmaDrawer.writeConfig("numberRows", "4")
142142
plasmaDrawer.writeConfig("searchIconSize", "250")

0 commit comments

Comments
 (0)