Programmatically Changing the Xfce Desktop Names

Peter de Ridder peter at xfce.org
Mon Dec 28 11:48:32 CET 2009


On Mon, Dec 28, 2009 at 6:48 AM, Shlomi Fish <shlomif at iglu.org.il> wrote:
> Hi all!
>
> How can I programmatically change the virtual desktop names of Xfce while Xfce
> is running? I'd like to write a script to initialise desktops 1-8 with names
> that I define in case they get reset.
>

You can do this with xfconf-query.
To set the workspace count use: xfconf-query -c xfwm4 -p
/general/workspace_count -s 8
The workspace names are stored as an array so you must specify them all at once.
xfconf-query -c xfwm4 -p /general/workspace_names -s "Name 1" -s "Name
2" -s "Name 3" (etc.)

Regards,
Peter



More information about the Xfce mailing list