Re: toolbar placement

JOKer <[email protected]>
Newsgroups gmane.comp.window-managers.fluxbox.user
Message-ID <[email protected]>
Hiho.

In fluxbox-keys(5) I found the following:
SetResourceValue resourcename resourcevalue | SetResourceValueDialog

    SetResourceValue resourcename resourcevalue | SetResourceValueDialog
       Sets a fluxbox resource value, which are normally stored in the
       init file. See fluxbox(1) for more details on available
       resources and allowed values.

If I read fluxbox-remote(1) correctly, one should give it a try with
setting the resource session.screen0.toolbar.placement: TopCenter

But my try with `fluxbox-remote setResourceValue
session.screen0.toolbar.placement TopCenter` failed. Nothing happens. So
this might be one of the disabled commands, I guess?

So I would go with Michael Craft's advise: use something like
sed -i 's/toolbar\.placement:[[:space:]]*BottomCenter/toolbar.placement:
TopCenter/' $HOME/.fluxbox/init

and then
killall -USR1 fluxbox
or
fluxbox-remote Reconfigure

A nice day everyone,
JOKer

On 18/01/12 18:00, Massimo Canonico wrote:
> Hi,
> 
> 
> On 01/18/2012 05:33 PM, Javier Vasquez wrote:
>> | | On 1/17/12, Massimo Canonico<[email protected]>  ...
>> | | This would be ok, if I like to have toolbar in the TopCenter always..
>> | | but when I use one single screen I like to hahe the tool bar in the
>> | | BottomCenter, but when I switch to double screen (with my script) I
>> | | would like to have toolbar in the TopCenter. Can I modify that value in
>> | | ~/.fluxbox/init with a script?
>> |
>> | On 1/18/12, Michael Craft<[email protected]>  wrote:
>> | This should definately be possible, you could use something like sed or awk
>> | to modify that value in the config file, and then use kill or killall to
>> | send SIGUSR1 to the fluxbox process to have it reload the config.
>>
>> You mean using killall in the same script, or some other kill?  Please
>> notice if you kill fluxbox when it was started by startx, and not a
>> desktop manager such as xdm, then your X session dies.  So I wouldn't
>> suggest killing fluxbox as a general solution.
>>
>> If you want to restart fluxbox, the fluxbox menu offers a "restart
>> fluxbox" option, and that works no matter how fluxbox was called.
>>
>> Also for the toolbar placement, if you're under fluxbox already, you
>> don't need a script.  Again the fluxbox menu offers a toolbar
>> placement option, so you can do it dynamically, and I believe you
>> don't even need to restart fluxbox when changing through fluxbox menu.
> 
> Yes I know but you have to do it manually, I was wondering if there 
> something that can do it automatically using a script. Is there any 
> change to have a keys-sequence to change toolbar placement?
> 
> Thanks,
>   M
>> The script sounds good, but in this case I think fluxbox menu is
>> easier for dynamic changes.
>>
> 

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.