Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-05-26 21:37:46

secipolla
Member
Registered: 2012-01-15
Posts: 393

Command that outputs current workspace?

Instead of having the workspace switcher on the panel I would rather just have the current workspace name/number.
Is there a command that would output the current workspace so I could use a script and the genmon panel plugin to show it?

Offline

#2 2012-05-27 10:41:42

oodavid
Member
From: Newcastle, UK
Registered: 2012-04-06
Posts: 16
Website

Re: Command that outputs current workspace?

Not sure as a panel item, I know you can do it with conky using this snippet:

${desktop_name}

Offline

#3 2012-05-27 14:21:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,985

Re: Command that outputs current workspace?

wmctrl can do this.

wmctrl -d

and more specifically:

wmctrl -d | grep \* | tr -s " " | cut -d' ' -f10

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#4 2012-05-27 15:37:10

secipolla
Member
Registered: 2012-01-15
Posts: 393

Re: Command that outputs current workspace?

Thank you very much to both.

Offline

Board footer

Powered by FluxBB