Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
effects.windowAdded.connect(function(w) {
|
||||
w.anim1 = effect.animate(w, Effect.Scale, 100, 1.4, 0.2, 0, QEasingCurve.OutCubic);
|
||||
sendTestResponse(typeof(w.anim1) == "number");
|
||||
|
||||
w.minimizedChanged.connect(() => {
|
||||
if (w.minimized) {
|
||||
retarget(w.anim1, 1.5, 200);
|
||||
} else {
|
||||
cancel(w.anim1);
|
||||
}
|
||||
});
|
||||
});
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
effects.windowAdded.connect(function(w) {
|
||||
w.anim1 = animate({
|
||||
window: w,
|
||||
duration: 100,
|
||||
animations: [{
|
||||
type: Effect.Scale,
|
||||
to: 1.4,
|
||||
curve: QEasingCurve.OutCubic
|
||||
}, {
|
||||
type: Effect.Opacity,
|
||||
curve: QEasingCurve.OutCubic,
|
||||
to: 0.0
|
||||
}]
|
||||
});
|
||||
sendTestResponse(typeof(w.anim1) == "object" && Array.isArray(w.anim1));
|
||||
|
||||
w.minimizedChanged.connect(() => {
|
||||
if (w.minimized) {
|
||||
retarget(w.anim1, 1.5, 200);
|
||||
} else {
|
||||
cancel(w.anim1);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
window.animation = set({
|
||||
window: window,
|
||||
curve: QEasingCurve.Linear,
|
||||
duration: animationTime(1000),
|
||||
type: Effect.Opacity,
|
||||
from: 0,
|
||||
to: 1,
|
||||
keepAlive: false
|
||||
});
|
||||
|
||||
window.minimizedChanged.connect(() => {
|
||||
if (!window.minimized) {
|
||||
return;
|
||||
}
|
||||
if (complete(window.animation)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
sendTestResponse(displayWidth() + "x" + displayHeight());
|
||||
sendTestResponse(animationTime(100));
|
||||
|
||||
//test enums for Effect / QEasingCurve
|
||||
sendTestResponse(Effect.Saturation)
|
||||
sendTestResponse(QEasingCurve.Linear)
|
||||
@@ -0,0 +1,18 @@
|
||||
effects.windowAdded.connect(function(window) {
|
||||
sendTestResponse("windowAdded - " + window.caption);
|
||||
sendTestResponse("stackingOrder - " + effects.stackingOrder.length + " " + effects.stackingOrder[0].caption);
|
||||
|
||||
window.minimizedChanged.connect(() => {
|
||||
if (window.minimized) {
|
||||
sendTestResponse("windowMinimized - " + window.caption);
|
||||
} else {
|
||||
sendTestResponse("windowUnminimized - " + window.caption);
|
||||
}
|
||||
});
|
||||
});
|
||||
effects.windowClosed.connect(function(window) {
|
||||
sendTestResponse("windowClosed - " + window.caption);
|
||||
});
|
||||
effects.desktopChanged.connect(function(old, current) {
|
||||
sendTestResponse("desktopChanged - " + old.x11DesktopNumber + " " + current.x11DesktopNumber);
|
||||
});
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
effects.desktopChanged.connect(function(old, current) {
|
||||
var stackingOrder = effects.stackingOrder;
|
||||
for (var i=0; i<stackingOrder.length; i++) {
|
||||
var w = stackingOrder[i];
|
||||
//1 second long random animation. Final param indicates fullscreen
|
||||
w.anim1 = effect.animate(w, Effect.Scale, 1000, 1.4, 0.2, 0, QEasingCurve.Linear, 0, true);
|
||||
}
|
||||
});
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
effects.desktopChanged.connect(function(old, current) {
|
||||
var stackingOrder = effects.stackingOrder;
|
||||
for (var i=0; i<stackingOrder.length; i++) {
|
||||
var w = stackingOrder[i];
|
||||
//1 second long random animation, marked as fullscreen
|
||||
w.anim1 = animate({
|
||||
window: w,
|
||||
duration: 1000,
|
||||
fullScreen: true,
|
||||
animations: [{
|
||||
type: Effect.Scale,
|
||||
curve: Effect.GaussianCurve,
|
||||
to: 1.4
|
||||
}, {
|
||||
type: Effect.Opacity,
|
||||
curve: Effect.GaussianCurve,
|
||||
to: 0.0
|
||||
}]
|
||||
});
|
||||
}
|
||||
});
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
effects.desktopChanged.connect(function(old, current) {
|
||||
var stackingOrder = effects.stackingOrder;
|
||||
for (var i=0; i<stackingOrder.length; i++) {
|
||||
var w = stackingOrder[i];
|
||||
//1 second long random animation, marked as fullscreen
|
||||
w.anim1 = animate({
|
||||
window: w,
|
||||
duration: 1000,
|
||||
animations: [{
|
||||
type: Effect.Scale,
|
||||
curve: Effect.GaussianCurve,
|
||||
to: 1.4,
|
||||
fullScreen: true
|
||||
}, {
|
||||
type: Effect.Opacity,
|
||||
curve: Effect.GaussianCurve,
|
||||
to: 0.0,
|
||||
fullScreen: true
|
||||
}]
|
||||
});
|
||||
}
|
||||
});
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
if (effect.grab(window, Effect.WindowAddedGrabRole)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
if (effect.grab(window, Effect.WindowAddedGrabRole, true)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
if (effect.grab(window, Effect.WindowAddedGrabRole)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
if (effect.grab(window, Effect.WindowAddedGrabRole)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
if (effect.grab(window, Effect.WindowAddedGrabRole)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
effects.windowClosed.connect(function (window) {
|
||||
animate({
|
||||
window: window,
|
||||
type: Effect.Scale,
|
||||
duration: 1000,
|
||||
from: 1.0,
|
||||
to: 0.0
|
||||
// by default, keepAlive is set to true
|
||||
});
|
||||
sendTestResponse("triggered");
|
||||
});
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
effects.windowClosed.connect(function (window) {
|
||||
animate({
|
||||
window: window,
|
||||
type: Effect.Scale,
|
||||
duration: 1000,
|
||||
from: 1.0,
|
||||
to: 0.0,
|
||||
keepAlive: false
|
||||
});
|
||||
sendTestResponse("triggered");
|
||||
});
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
window.animation = animate({
|
||||
window: window,
|
||||
curve: QEasingCurve.Linear,
|
||||
duration: animationTime(1000),
|
||||
type: Effect.Opacity,
|
||||
from: 0.0,
|
||||
to: 1.0
|
||||
})
|
||||
|
||||
window.minimizedChanged.connect(() => {
|
||||
if (!window.minimized) {
|
||||
return;
|
||||
}
|
||||
if (redirect(window.animation, Effect.Backward, Effect.DontTerminate)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
});
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
window.animation = animate({
|
||||
window: window,
|
||||
curve: QEasingCurve.Linear,
|
||||
duration: animationTime(1000),
|
||||
type: Effect.Opacity,
|
||||
from: 0.0,
|
||||
to: 1.0
|
||||
});
|
||||
|
||||
window.minimizedChanged.connect(() => {
|
||||
if (!window.minimized) {
|
||||
return;
|
||||
}
|
||||
if (redirect(window.animation, Effect.Backward, Effect.TerminateAtSource)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
});
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
window.animation = set({
|
||||
window: window,
|
||||
curve: QEasingCurve.Linear,
|
||||
duration: animationTime(1000),
|
||||
type: Effect.Opacity,
|
||||
from: 0.0,
|
||||
to: 1.0,
|
||||
keepAlive: false
|
||||
});
|
||||
|
||||
window.minimizedChanged.connect(() => {
|
||||
if (!window.minimized) {
|
||||
return;
|
||||
}
|
||||
if (redirect(window.animation, Effect.Backward, Effect.DontTerminate)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
});
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
window.animation = set({
|
||||
window: window,
|
||||
curve: QEasingCurve.Linear,
|
||||
duration: animationTime(1000),
|
||||
type: Effect.Opacity,
|
||||
from: 0.0,
|
||||
to: 1.0,
|
||||
keepAlive: false
|
||||
});
|
||||
|
||||
window.minimizedChanged.connect(() => {
|
||||
if (!window.minimized) {
|
||||
return;
|
||||
}
|
||||
if (redirect(window.animation, Effect.Backward, Effect.TerminateAtSource)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
registerScreenEdge(1, function() {
|
||||
sendTestResponse("triggered");
|
||||
});
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
registerTouchScreenEdge(1, function() {
|
||||
sendTestResponse("triggered");
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
registerShortcut("testShortcut", "Test Shortcut", "Meta+Shift+Y", function() {
|
||||
sendTestResponse("shortcutTriggered");
|
||||
});
|
||||
@@ -0,0 +1,18 @@
|
||||
effects.windowAdded.connect(function (window) {
|
||||
if (effect.grab(window, Effect.WindowAddedGrabRole)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
|
||||
window.minimizedChanged.connect(() => {
|
||||
if (!window.minimized) {
|
||||
return;
|
||||
}
|
||||
if (effect.ungrab(window, Effect.WindowAddedGrabRole)) {
|
||||
sendTestResponse('ok');
|
||||
} else {
|
||||
sendTestResponse('fail');
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user