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: 11,547

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

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 520.03 KiB (Peak: 520.88 KiB) ]