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

how to change panel size from a script?

Tags: None
(comma "," separated)
timrichardson
Registered Member
Posts
15
Karma
0
OS
I have a vertical panel in kde 4.3.4. It should maximise to occupy the full height of the screen, but if I activate dual screen setup after my kde session starts, where the new main monitor is the external monitor which is much bigger than my laptop display, the kde panel keeps its initial height, the height of my laptop display.

Clicking through a few dialogs to get to maximise panel is getting tedious. This is linux, so I imagine there's a way I can script this. I'm happy with Perl and am looking for an excuse to get in python.

thanks
Tim
User avatar
SeaJey
Registered Member
Posts
166
Karma
0
OS
Could it be here?
scripting plasma-desktop


kubuntu 10.04 AMD64 - KDE 4.4
AMD - radeonHD - M-Audio revolution 5.1
timrichardson
Registered Member
Posts
15
Karma
0
OS
Thanks for the link. The link to the API in that article is broken.
I previously came across
http://techbase.kde.org/KDE_System_Admi ... pScripting
but

I would love for an example of how to do this ... I see references to the javascripting API but no tutorials or examples.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please see $KDEDIR/share/apps/plasma-desktop/init/00-defaultLayout.js


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Note that such operations are possible only from 4.4 onwards (4.4.2 or later preferred due to some changes in the JS bindings). Even better support is in trunk (future release 4.5 of the SC).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar