[openbox] How to maximize,undecorate window once?

James Stortz james.ryan.stortz at gmail.com
Tue Sep 1 19:11:10 EDT 2015


Thank you guys for chipping in. If any other ideas come up, give me a
heads-up!

I've got it working for my needs as is, but may still keep looking for a
more proper solution.

Regards,
James

On Tue, Sep 1, 2015 at 10:22 PM, James Stortz <james.ryan.stortz at gmail.com>
wrote:

> Actually... it does! Or it *should*
>
> It has the same effect of renaming.
>
> But it turns out, with midori, as I may have suspected, the issue with it
> is it is tied into the loading of the config ("-c [cfg dir]")
>
> If I don't set any cfg it won't set the WM_CLASS, if I do set it, it will
> persist from the first instance.
>
> So, I'd still like a proper solution for consistent practice on openbox.
>
> On Tue, Sep 1, 2015 at 10:02 PM, Dana Jansens <danakj at orodu.net> wrote:
>
>> Does linking the binary give it a diff class name?
>>
>> ln -s /usr/bin/midori /usr/bin/midori.1
>>
>> On Tue, Sep 1, 2015 at 3:00 PM, James Stortz <james.ryan.stortz at gmail.com
>> > wrote:
>>
>>> Thanks.
>>>
>>> Each application instance has to be launched automatically. I'm
>>> launching 4 web browsers at startup and they need to each be on their own
>>> desktop workspace.
>>>
>>> After that, I want the browser to launch as normal.
>>>
>>> I thought I just had a way to do it, a simple little trick, but not
>>> working!
>>>
>>> mv /usr/bin/midori /usr/bin/midori.1
>>> midori.1 -c cfg &
>>>
>>> mv /usr/bin/midori.1 /usr/bin/midori.2
>>> midori.2 -c cfg &
>>>
>>> mv /usr/bin/midori.2 /usr/bin/midori
>>>
>>> That will change the WM_CLASS to midori.1 and midori.2. Actually kinda
>>> cool. Thought it would work, but again it's too fast. Didn't want to use
>>> sleep, but even when I tried that it oddly set both to midori.1, even
>>> though it was called with midori.2!
>>>
>>>
>>>
>>> James
>>>
>>> On Tue, Sep 1, 2015 at 9:33 PM, Ian Zimmerman <itz at buug.org> wrote:
>>>
>>>> On 2015-09-01 20:52 +0000, James Stortz wrote:
>>>>
>>>> > Good evening! I need to know how to selectively open windows with
>>>> temporary
>>>> > options. It's easy enough to set them in the rc.xml, which is great!
>>>> Any
>>>> > suggestions as to what might be possible? Doesn't seem to be a
>>>> programmatic
>>>> > way to do it, like an API.
>>>> >
>>>> > For example, is it possible to set the _OB_CLASS or _OB_NAME or
>>>> _OB_ROLE or
>>>> > something before launching an app?
>>>>
>>>> This is the type of question that's asking for:
>>>>
>>>> Why?
>>>>
>>>> If I know what you're really trying to do, I may have a better answer
>>>> :-P
>>>>
>>>> --
>>>> Please *no* private copies of mailing list or newsgroup messages.
>>>> Rule 420: All persons more than eight miles high to leave the court.
>>>>
>>>> _______________________________________________
>>>> openbox mailing list
>>>> openbox at icculus.org
>>>> http://icculus.org/mailman/listinfo/openbox
>>>
>>>
>>>
>>> _______________________________________________
>>> openbox mailing list
>>> openbox at icculus.org
>>> http://icculus.org/mailman/listinfo/openbox
>>>
>>
>>
>> _______________________________________________
>> openbox mailing list
>> openbox at icculus.org
>> http://icculus.org/mailman/listinfo/openbox
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20150901/f2afa2d6/attachment.html>


More information about the openbox mailing list