I Have a script that change my desktop layout using xrandr,
but I also want to move my Panel.
So far I played round with kwinscripts, using
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.showInteractiveConsole
If i move it using the mouse, the panel.screen changes between 0 and 2,
but the script row panel.screen = 2 don't set it to 2, it stays, but panel.location='bottom' works fine.
var panel = panelById(panelIds[0])
print('before, panel.screen: ');
print(panel.screen);
panel.screen=2;
//panel.location='top';
panel.location='bottom';
print('after, panel.screen: ');
print(panel.screen);
Why isn't panel.screen=2; working?, and what else can I do to move it?