Reputation: 3073
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
Reputation: 3073
qdbus org.kde.kwin /KWin org.kde.KWin.currentDesktop
prints the number of the current virtual desktop.
Upvotes: 1