Reply to topic

How to query pager for name or number of current desktop

meglin
Registered Member
Posts
2
Karma
0
Is there a way to query the Plasma Pager for the name or number of the currently-active desktop? I want to use virtual desktops to log my hours; the idea is that I have a cron script which queries Pager every minute or so to find out which desktop I am in, and therefore which project I am currently working on. Alternatively, I could query the Activity Manager, but I would prefer to query Pager, because I currently don't use activities.

Thanks
User avatar einar
Administrator
Posts
2285
Karma
5
OS
A KWin script may do the trick, or

Code: Select all
qdbus org.kde.kwin /KWin currentDesktop


Be aware in the latter case you need to be able to access your user's DBus session.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
meglin
Registered Member
Posts
2
Karma
0
Great, thank you!

 
Reply to topic

Bookmarks



Who is online

Registered users: afiestas, arojas, avishekk, Baidu [Spider], Bing [Bot], bjoernbalazs, Cris70, edmael, einar, epsi1on, Exabot [Bot], ggael, Google [Bot], google01103, Hans, ivan, jgrulich, joshaughnessy, jstaniek, koriun, La Ninje, Majestic-12 [Bot], MSNbot Media, ooker, progdan, scummos, sinclair, Sogou [Bot], TheraHedwig, Tioz, Yahoo [Bot]