Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a DBus command (or some other way from the command line) to toggle auto-hide on a panel in KDE Plasma? (I'm running KDE 4.6.)

I have a game I run in WINE that doesn't work right if it's autohidden and it would be nice to run it from a script that takes care of that for me.

share|improve this question
up vote 1 down vote accepted

You can do it easily through plasma desktop scripts, like this:

auto-hide on:

var panel = panelById(panelIds[0])
panel.hiding = 'autohide';

auto-hide off:

var panel = panelById(panelIds[0])
panel.hiding = 'none';

The bad news is there is no way to programatically run the script when you want it except perhaps for some kind of keyboard+mouse automation.

The closest you can get (per this discussion on KDE forum) is open the script in desktop console via

qdbus org.kde.plasma-desktop /MainApplication \
    loadScriptInInteractiveConsole /path/to/js/file

There is bug #238817 in KDE Bugzilla filed on this.

share|improve this answer
Yeah, scripting is pretty useless if you can't execute them! Accepting for now. (BTW, I voted for your RFE bug. :-) – Patches Jun 16 '11 at 4:36

I think you should check Re: Documentation for the dbus methods for plasma and for some example of how to use dbus Lauching K menu with DBus.

If a method is present it will easy to find.

share|improve this answer
I've been looking through qdbusviewer properties of krunner, kwin, and especially plasma-desktop, but there was nothing that seemed related to the Plasma panel :( There was no item for plasma itself. – che Jun 4 '11 at 19:34
Tried to chat with some kde-geek? Forum, irc and mailing list of kde project can help. That problem of no item for plasma is really odd. – dvd Jun 5 '11 at 6:43
I was hoping to get around this kind of research by asking the question here :-) – che Jun 5 '11 at 13:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .