Joon's blog

Python | openSUSE | LaTeX

KDE 4.6.3: workaround for Plasma panels don’t resize to fit screen height or width

without comments

This is a workaround for Bug 265051:Plasma panels don’t resize to fit screen height or width … , and it is just Karsten’s workaround. I put it here for the record.

This happens in KDE 4.6.3 (possibly in other versions as well)

For this you need xdotool. It is in openSUSE:11.4:Contrib/standard repo for openSUSE 11.4.
1-Click Install

You need to make following two files:
panel.js

1
panelById(panelIds[0]).length = screenGeometry(0).width;

resize-kde-panel.sh

1
2
3
4
5
#!/bin/bash
qdbus org.kde.plasma-desktop /MainApplication loadScriptInInteractiveConsole
/home/......./panel.js
xdotool key ctrl+e
xdotool key alt+F4

You need to modify the path to “panel.js” file in the second line.

Now make resize-kde-panel.sh executable:

1
chmod +x resize-kde-panel.sh

Then whenever the panel needs resizing (potentially after connecting/disconnecting external monitor), just run that shell and it will resize itself.
You can make an application of this shell and run it in GUI mode as well.

Written by joon

May 21st, 2011 at 2:30 pm

Posted in kde,linux,opensuse

Tagged with , ,

Leave a Reply