mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
21 lines
492 B
JavaScript
21 lines
492 B
JavaScript
|
|
let topFound = false
|
||
|
|
let bottomFound = false
|
||
|
|
|
||
|
|
for (let i in panels()) {
|
||
|
|
print(panels()[i].type)
|
||
|
|
if (panels()[i].type === "org.kde.phone.panel") {
|
||
|
|
topFound = true;
|
||
|
|
} else if (panels()[i].type === "org.kde.phone.taskpanel") {
|
||
|
|
topFound = true;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
if (!topFound) {
|
||
|
|
let topPanel = new Panel("org.kde.phone.panel")
|
||
|
|
topPanel.location = "Top";
|
||
|
|
}
|
||
|
|
if (!bottomFound) {
|
||
|
|
let topPanel = new Panel("org.kde.phone.taskpanel")
|
||
|
|
topPanel.location = "Bottom";
|
||
|
|
}
|