You are not logged in.
Pages: 1
hii
how can i get current workspace number?
do you have some script ?
Last edited by yphqyn (2009-04-23 17:49:31)
Offline
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
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
i'm using fluxbox, and i want add to my dzen2's bar info about current workspace...
Offline
You can list workspace names with wmctrl
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
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
because i love dzen ;-)
ha! i found, thx
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
resolve is:
wmctrl -d | gawk '{if ($2 == "*") print $1+1}'
thx
Last edited by yphqyn (2009-04-23 17:10:05)
Offline
Pages: 1