Shai Berger
Shai Berger

Reputation: 3073

In KDE4, how can I automatically tell which “Desktop” a Konsole terminal is in?

I was looking for this and found a question and answer for KDE3; I figured more people will be interested in the answer for KDE4 as time passes (posting here just so I can also post the answer...)

Upvotes: 0

Views: 132

Answers (1)

Shai Berger
Shai Berger

Reputation: 3073

qdbus org.kde.kwin /KWin org.kde.KWin.currentDesktop prints the number of the current virtual desktop.

Upvotes: 1

Related Questions