This forum has been archived. All content is frozen. Please use KDE Discuss instead.

API for moving panels

Tags: None
(comma "," separated)
User avatar
RockFord
Registered Member
Posts
4
Karma
0
OS

API for moving panels

Wed Sep 07, 2016 10:24 pm
Hi,
I'm looking for some API to move panels around the edges and screens or how it is done currently (where to look for implementation of "Panel setting -> screen Edge")

There's: https://userbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting#Panels
and there is property "location" but it is read only, and I'm looking for a way to make it read/write.

Why?
I have a laptop and an additional monitor.
I'm using two vertical panels, one on left other and other on right edge of "desktop". If have two monitors (two screens) one panel is on left edge of left monitor,
other is on right side of right monitor.
but
if I disconnect monitor from my laptop, I have one screen -> desktop smaller, so one of the panels is inaccessible, but it is sill started, its coordinates are outside of the desktop.
Theoretically I can try to write some script to change panel position in ~/.config/plasma-org.kde.plasma.desktop-appletsrc, but it may be hard to synchronise it with plasma start, after login but before plasma start, and to save changes done from GUI this file should be some how synchronized, so a looooot of work with rather poor results.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]