Xfce Forum

Sub domains
 

You are not logged in.

#1 2007-01-20 15:22:30

black rabbit
Member
Registered: 2007-01-20
Posts: 6

Active session information / Getting the current workspace?

Hey all.

I run without any panels, taskbars, or whatever, since I like my screen real estate.

I've got a small script that dumps the date/time and my battery status to an OSD via osd_cat when I hit a hotkey, eg:

http://www.neussubjex.net/misc/shot1.png

I'd like to include another line that'll tell me what workspace I'm on, so that I'd have "Workspace [1-4]" in, say, the upper left corner.

Is there any way to get the active workspace number from xfdesktop / xfwm?

I'm running 4.3.90.2 on Dapper.

I seem to recall that in an earlier version (4.2 maybe?) the active session information was stored in a session file that got moved to the "last" session file when I logged out, but now I can't seem to find it.

Anybody got any ideas?

Offline

#2 2007-01-20 15:38:05

TomE
Member
Registered: 2005-02-05
Posts: 132

Re: Active session information / Getting the current workspace?

you can do this with wmctrl

wmctrl -d | grep '*' | cut -d " " -f14

Offline

#3 2007-01-20 15:58:26

black rabbit
Member
Registered: 2007-01-20
Posts: 6

Re: Active session information / Getting the current workspace?

High five!

Thanks.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 9 queries executed - Memory usage: 521.33 KiB (Peak: 522.17 KiB) ]