Re: How to change the name for each workspace on the fly?

Peng Yu <[email protected]> Sat, 19 Sep 2009 14:52:18 -0500
Newsgroups gmane.comp.window-managers.icewm.devel,gmane.comp.window-managers.icewm.user
Message-ID <[email protected]>
On Sat, Sep 19, 2009 at 1:38 PM, Bernd Eggink <[email protected]> wrote:
> Peng Yu schrieb:
>>
>> On Sat, Sep 19, 2009 at 12:05 PM, Bernd Eggink <[email protected]> wrote:
>>>
>>> Peng Yu schrieb:
>>>>
>>>> On Sat, Sep 19, 2009 at 2:29 AM, Bernd Eggink <[email protected]>
>>>> wrote:
>>>>>
>>>>> Peng Yu schrieb:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Since I'm not sure what the technical term is for what I want to
>>>>>> refer. I will use the term "name" for now.
>>>>>>
>>>>>> By "workspace name", I mean the popup notice (right now, I have
>>>>>> something like "Workspace 1", "Workspace 2", etc), when my mouse is on
>>>>>> (without clicking) the workspace button on the toolbar.
>>>>>>
>>>>>> I feel that it would be convenient if the names ( "Workspace 1",
>>>>>> "Workspace 2", etc) can be changed to some more meaningful while I am
>>>>>> still in the same icewm session. Even if I can not configure it on the
>>>>>> fly, at least I want to change them to some more meaningful words next
>>>>>> time when I start a icewm session.
>>>>>
>>>>> Edit the file ~/.icewm/preferences. Look for the line beginning with
>>>>> "WorkspaceNames". Change the names as you like. To put the changes into
>>>>> effect, either kill and restart the icewm session, or simply call
>>>>>
>>>>>  pkill -HUP icewm
>>>>
>>>> http://rapidshare.com/files/282228218/dump.png
>>>>
>>>> I don't think that you understand what I meant. Please see the above
>>>> figure for what I mean.
>>>>
>>>> When my mouse on top of "2" on my toolbar, icewm will pop up
>>>> "Workspace:2".
>>>>
>>>> I still want to maintain the numbers 0 to 9 on the toolbar. But I want
>>>> to change the pop-up words, such as "Workspace:2", to something more
>>>> descriptive.
>>>
>>> OK, now I understand. You can't do that on the fly. The text appearing in
>>> the popup is hard-coded in the .po file correspondig to your language;
>>> default is "en". The only way to achieve this would be to get the source,
>>> edit the file po/en.po, and compile and re-install the language file
>>> (make
>>> nls; make install-nls).
>>
>> That is OK, if I can not change it on the fly. But as long as I can
>> change the corresponding popup message for each workspace, that will
>> be OK with me.
>>
>> I have found the file 'en.po'. What I should do to customize the popup
>> message for each workspace?
>
> Unfortunately, changing the message in the po file will change it for _all_
> workspaces. Icewm doesn't support different popup strings for different
> workspaces. You could of course try to patch the sources for that. Good
> luck!

I have no idea how icewm works. Could the developer put this request
in the to-do list?

Regards,
Peng

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf