You are not logged in.

#1 2009-04-23 16:01:31

yphqyn
Member
Registered: 2009-04-23
Posts: 20

[SOLVED] workspace number...

hii

how can i get current workspace number?
do you have some script ?

Last edited by yphqyn (2009-04-23 17:49:31)

Offline

#2 2009-04-23 16:29:34

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] workspace number...

yphqyn wrote:

hii

how can i get current workspace number?
do you have some script ?

how is anyone supposed to help you with that generic question?

at least give us some info on what wm you are using. what are you trying to accomplish....something


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2009-04-23 16:42:21

yphqyn
Member
Registered: 2009-04-23
Posts: 20

Re: [SOLVED] workspace number...

i'm using fluxbox, and i want add to my dzen2's bar info about current workspace...

Offline

#4 2009-04-23 16:44:05

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [SOLVED] workspace number...

You can list workspace names with wmctrl

yphqyn wrote:

i'm using fluxbox, and i want add to my dzen2's bar info about current workspace...

Well, that won't be easy...

Last edited by moljac024 (2009-04-23 16:44:51)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#5 2009-04-23 16:45:32

Wra!th
Member
Registered: 2009-03-31
Posts: 342

Re: [SOLVED] workspace number...

yphqyn wrote:

i'm using fluxbox, and i want add to my dzen2's bar info about current workspace...

Fluxbox already displays workspace names on the toolbar..why add it to dzen too?


MacGregor DESPITE THEM!
7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

Offline

#6 2009-04-23 16:50:35

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] workspace number...

i think wmctrl and awk should do what you want

Offline

#7 2009-04-23 16:54:54

yphqyn
Member
Registered: 2009-04-23
Posts: 20

Re: [SOLVED] workspace number...

because i love dzen ;-)
ha! i found, thx big_smile

i use
wmctrl -d, and i get:
0  - DG: 1024x768  VP: N/A  WA: 0,0 1024x745  Workspace 1
1  * DG: 1024x768  VP: 0,0  WA: 0,0 1024x745  Workspace 2
2  - DG: 1024x768  VP: N/A  WA: 0,0 1024x745  Workspace 3
3  - DG: 1024x768  VP: N/A  WA: 0,0 1024x745  Workspace 4

'*' say's me what workspace i'm current using big_smile

resolve is:

wmctrl -d | gawk '{if ($2 == "*") print $1+1}'

thx

Last edited by yphqyn (2009-04-23 17:10:05)

Offline

#8 2009-04-23 17:26:23

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [SOLVED] workspace number...

don't forget to mark as [SOLVED]; thanks.

Offline

Board footer

Powered by FluxBB