I'm trying to programically set panel location. I'm using:

qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.showInteractiveConsole

I have determined that when I manually drag panel to other screen I get 0 and 1 from panel.screen . Unfortunately moving the panel does not work with this script:

var panel = panelById(1); print("screenCount: " + screenCount); print("panel.screen: " + panel.screen); panel.screen = 0; print("panel.screen: " + panel.screen);

The panel stays in it's place and I get in output:

screenCount: 6 panel.screen: 1 panel.screen: 1

When I try with things like

panel.location = "top"; panel.location = "bottom";

it works as expected.

Resources: