How to query what desktop I'm currently on.

Kevin Krammer kevin.krammer at
Tue Aug 5 15:56:09 BST 2008

On Tuesday 05 August 2008, Steven W. Orr wrote:
> For purposes of a script I'd like to write, I want to query what desktop
> I'm currently on so that I can noop if I'm already on the desktop I want
> to be at.
> Is there a commandline interface that will tell me what desktop I'm
> currently on?

On KDE like this

% dcop kwin KWinInterface currentDesktop


Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <>
-------------- next part --------------
This message is from the kde mailing list.
Account management:
More info:

More information about the kde mailing list