小编Pug*_* Se的帖子

如何从命令行/脚本移动 KDE 等离子面板?

我有一个使用 更改我的桌面布局的脚本xrandr,但我也想移动我的面板。

到目前为止,我玩过 kwinscripts,使用
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.showInteractiveConsole

如果我使用鼠标移动它,panel.screen 在 0 和 2 之间变化,但脚本行panel.screen = 2没有将它设置为 2,它保持不变,但panel.location='bottom'工作正常。

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);
Run Code Online (Sandbox Code Playgroud)

为什么不panel.screen=2;工作?,我还能做些什么来移动它?

linux kde kubuntu kwin kde-plasma-5

10
推荐指数
1
解决办法
2344
查看次数

标签 统计

kde ×1

kde-plasma-5 ×1

kubuntu ×1

kwin ×1

linux ×1