You are not logged in.

#1 2014-02-16 05:49:14

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[Openbox]Disabling black borders around windows when switching[solved]

Hi there,

I am wondering whether it is possible to disable the thick black border animation around windows when switching between windows in ALT + TAB mode.

Screenshot of the border that I am talking about:

http://i.imgur.com/N92tyTy.png

Last edited by orschiro (2014-02-16 19:50:28)

Offline

#2 2014-02-16 17:53:50

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [Openbox]Disabling black borders around windows when switching[solved]

http://openbox.org/wiki/Help:Themes wrote:

osd.border.width
Type:     integer
Default:     border.width
Valid:     0 - 100

Specifies the size of the border drawn on-screen-dialogs, such as the focus cycling (Alt-Tab) dialog.

See also: osd.border.color


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-02-16 19:49:37

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [Openbox]Disabling black borders around windows when switching[solved]

Thanks!

Offline

#4 2015-02-14 21:55:16

nashamri
Member
Registered: 2014-04-09
Posts: 30

Re: [Openbox]Disabling black borders around windows when switching[solved]

Did that work? the "osd.border.width: 0" only removes the borders around the Alt-Tab dialog, not the borders around the windows themselves.

Offline

#5 2015-02-14 22:48:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [Openbox]Disabling black borders around windows when switching[solved]

This seems like a very very odd solution.  The correct solution would simply be to specify <bar>no</bar> in the action.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2015-02-15 10:32:37

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [Openbox]Disabling black borders around windows when switching[solved]

Trilby wrote:

This seems like a very very odd solution.  The correct solution would simply be to specify <bar>no</bar> in the action.

Great solution, thanks!

<!-- Keybindings for window switching -->
    <keybind key="A-Tab">
      <action name="NextWindow">
        <!-- Hide black border around windows -->
        <bar>no</bar>
        <finalactions>
          <action name="Focus"/>
          <action name="Raise"/>
          <action name="Unshade"/>
        </finalactions>
      </action>
    </keybind>
    <keybind key="A-S-Tab">
      <action name="PreviousWindow">
        <!-- Hide black border around windows -->
        <bar>no</bar>
        <finalactions>
          <action name="Focus"/>
          <action name="Raise"/>
          <action name="Unshade"/>
        </finalactions>
      </action>
    </keybind>

Offline

#7 2015-02-15 13:17:59

nashamri
Member
Registered: 2014-04-09
Posts: 30

Re: [Openbox]Disabling black borders around windows when switching[solved]

Thanks Trilby! works great!

However, is there a way to change the color of that <bar>?
I'd like to have it but with a different color and I looked in the documentation and didn't find anything.

Offline

#8 2015-02-15 13:52:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: [Openbox]Disabling black borders around windows when switching[solved]

I never use these - I disable the bar indicator and use cycling as non-interactive.  But I just looked into it and it seems the white-on-black indicator is hard-coded.  If you want to patch/change the source, these are on lines 95 and 100-101 of openbox/focus_cycle_indicator.c.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2015-02-15 14:05:39

nashamri
Member
Registered: 2014-04-09
Posts: 30

Re: [Openbox]Disabling black borders around windows when switching[solved]

Thanks Trilby, really helpful!

Offline

#10 2015-02-15 18:06:22

nashamri
Member
Registered: 2014-04-09
Posts: 30

Re: [Openbox]Disabling black borders around windows when switching[solved]

Works beautifully,

Screenshot

Offline

Board footer

Powered by FluxBB