SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-10-31 13:34:01

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Openbox - Windowdecorations

For the session-/windows-storing in my Exit-Menu, I need to know, where I can get the information
if the window-decos are on or off.
I have looked through Wmctrl, Xprop and others, but no deco-output there.
So, what do I have to do, to get the simple yes/no, on/off, 0/1 or whatever output related to
window-decos, and from where ?

Greetings !

Offline

Help fund CrunchBang, donate to the project!

#2 2012-10-31 13:37:15

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,075

Re: Openbox - Windowdecorations

As far as I am aware there is no config file which gives info as to whether window decoration is on or off in openbox. Default is set to 'on'.

I turn off window decoration in rc.xml, at the bottom, by just copying and pasting and using xprop to identify window class.

neutral

Last edited by dura (2012-10-31 13:41:20)

Offline

#3 2012-10-31 15:12:15

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Re: Openbox - Windowdecorations

That sounds clever !
I thought you have to use the exact window-settings for any particular window ! So you can use
this trick also for the other settings (Taskbar,Pager,Geos...) ?
Nice one !

But is this setting really the only place, where OB has this info stored ?
Then OB must run this part in its rc.xml for every window, and has no list from where it can
easily read the settings ?

I already cancelled the Grep for the window-border, which you can set extra inside the rc.xml.
I don't get it, how to construct the Grep-patternmatching !
If the whole xml-tag is located on one line, than its no problem.
But how does it work, if the xml-tag is scattered over 3 lines ???

So I have to struggel with Grep/Xml, just for being better than other, much more expierienced monsters,
who sometimes not even get the windows displayed on the right workspaces after start-up...


Greetings !

Offline

#4 2012-10-31 15:30:49

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,288

Re: Openbox - Windowdecorations

    <application name="*">
      <decor>no</decor>
      <shade>no</shade>
      <skip_pager>yes</skip_pager>
      <fullscreen>no</fullscreen>
      <maximized>no</maximized>
      <layer>above</layer>
    </application>
  </applications>

I use this at the end of the rc.xml file to remove window decorations.

Online

#5 2012-10-31 15:50:30

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Re: Openbox - Windowdecorations

Oh, yes, another kind of clever shortening ! And you don't show any apps on your pager ?
And this is an example,where it will be easy to extract the info I need.
But I don't have the warranty, that the tag is on 1 line in every rc.xml, I have
to figure it out, if there is such tag in the rc.xml, and where it has its body stored.

Much more conveniant would be a simple byte/flag for every window, in my opinion.
But that is more a dream ?

Offline

#6 2012-10-31 16:46:43

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,075

Re: Openbox - Windowdecorations

^ I think xaos52 and myself have answered both of your requests: you can either do them individually, or as xaos52 shows you can turn them off by default (I didn't know that...).

It's all right at the bottom of rc.xml    Just copy and paste

Offline

#7 2012-10-31 17:03:38

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Re: Openbox - Windowdecorations

No, no, I didn't want to know, how I can switch them on/off. Both of your examples just had the
useful sideeffect to show me some tricks !
But my problem is, "just" to get the info, if the deco(and the border) of a window are on or off.
And that in an easier way, as than reading it out of the rc.xml,if there is a chance !

Offline

#8 2012-10-31 17:21:22

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,075

Re: Openbox - Windowdecorations

In my finite wisdom I can think of 2 choices:

1) Look at your computer screen to determine which are on and off

2) Examine rc.xml

roll

What could be easier than looking through a large amount of turgid text? hmm

Last edited by dura (2012-10-31 17:28:50)

Offline

#9 2012-10-31 17:24:47

junkie
#! Junkie
Registered: 2012-05-04
Posts: 344

Re: Openbox - Windowdecorations

^ Option 1) for the win!

Offline

#10 2012-10-31 17:31:10

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,075

Re: Openbox - Windowdecorations

You can assume (if you have not turned window decorations off as default, or off for particular apps, in rc.xml) that they are on.

Last edited by dura (2012-10-31 17:31:25)

Offline

#11 2012-10-31 17:39:29

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,075

Re: Openbox - Windowdecorations

Here is my the last section of my rc.xml which concerns window decorations. It is clearly visible which apps have window decorations turned off:

</application>
    <application class="Iceweasel">
      <decor>no</decor>
    </application>
    <application class="Thunar">
      <decor>no</decor>
    </application>
    <application class="Geany">
      <decor>no</decor>
    </application>
    <application class="Terminator">
      <decor>no</decor>
    </application>
    <application class="Obconf">
      <decor>no</decor>
    </application>
    <application class="File-roller">
      <decor>no</decor>
    </application>
    <application class="Viewnior">
      <decor>no</decor>
    </application>
    <application class="gFTP">
      <decor>no</decor>
    </application>
    <application class="Transmission-gtk">
      <decor>no</decor>
    </application>
    <application class="Gnome-mplayer">
      <decor>no</decor>
    </application>
    <application class="Gigolo">
      <decor>no</decor>
    </application>
    <application class="Abiword">
      <decor>no</decor>
    </application>
    <application class="Evince">
      <decor>no</decor>
    </application>
    <application class="Obmenu">
      <decor>no</decor>
    </application>
    <application class="Gimp">
      <decor>no</decor>
    </application>
    <application class="OBApps">
      <decor>no</decor>
    </application>
    <application class="Cb-exit">
      <decor>no</decor>
    </application>
    <application class="Catfish.pyc">
      <decor>no</decor>
    </application>
    <application class="Xfburn">
      <decor>no</decor>
    </application>
    <application class="Pavucontrol">
      <decor>no</decor>
    </application>
    <application class="Xchat">
      <decor>no</decor>
    </application>
    <application class="Vncviewer">
      <decor>no</decor>
    </application>
    <application class="Arandr">
      <decor>no</decor>
    </application>
    <application class="Lxappearance">
      <decor>no</decor>
    </application>
    <application class="Xfce4-power-manager-settings">
      <decor>no</decor>
    </application>
    <application class="Xscreensaver-demo">
      <decor>no</decor>
    </application>
    <application class="Nitrogen">
      <decor>no</decor>
    </application>
    <application class="System-config-printer">
      <decor>no</decor>
    </application>
    <application class="Gpartedbin">
      <decor>no</decor>
    </application>
    <application class="Synaptic">
      <decor>no</decor>
    </application>
    <application class="Slimconf">
      <decor>no</decor>
    </application>
    <application class="Gnumeric">
      <decor>no</decor>
    </application>
    <application class="Galculator">
      <decor>no</decor>
    </application>
    <application class="Xfce4-screenshooter">
      <decor>no</decor>
    </application>
    <application class="Bleachbit">
      <decor>no</decor>
    </application>
    <application class="Gdebi-gtk">
      <decor>no</decor>
    </application>
    <application class="Kupfer.py">
      <decor>no</decor>
    </application>
    <application class="Nm-applet">
      <decor>no</decor>
    </application>
    <application class="Gcr-prompter">
      <decor>no</decor>
    </application>
    <application class="Gimp-2.8">
      <decor>no</decor>
    </application>
    <application class="Bum">
      <decor>no</decor>
    </application>
    <application class="Clipit">
      <decor>no</decor>
    </application>
  </applications>
</openbox_config>

Last edited by dura (2012-10-31 17:40:13)

Offline

#12 2012-10-31 17:55:18

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Re: Openbox - Windowdecorations

Yes, and there the chaos begins : Maybe, you have some normal decorated wins, in a fullscreenmode some without any deco and border, and on a tiling workspace several without deco but with borders !

I have to manage such scenarios correctly, when I'm triying to make the script work universially, not only
with my own, wellknown behaviour.

Offline

#13 2012-10-31 18:03:39

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Re: Openbox - Windowdecorations

Oh, missed some posts !

@junkie : The version 1 also comes to my mind, but does not work in automating...

@dura : Your application section is exemplary, but like above, I can't assume, that all rc.xmls are such
easy to read.

PS: And what is really funny: Afaik, in wmctrl you can (un)set both the borders and the decos !

Last edited by errorist (2012-10-31 18:15:38)

Offline

#14 2012-10-31 18:07:22

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,075

Re: Openbox - Windowdecorations

You seem to know more than me anyway. But I reckon you can assume that every rc.xml is exactly the same in its mark up

Offline

#15 2012-10-31 18:26:39

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Re: Openbox - Windowdecorations

How that ? You offered the tricks here  !

But to make it clear : Just for show, I want to save the decos, and if i'm not to lasy, also the borders.
And finally, I also want to display them correctly at startup,when selected in a popup.

They are not elemantary to keep the sessionsaving working.

Other DEs don't care about, and if you love tiling, you have to rearrange your perfectly stiled
tilingscreens every time you restore the session !

Offline

#16 2012-10-31 18:57:24

machinebacon
#! unstable
From: PRC
Registered: 2009-07-02
Posts: 6,212
Website

Re: Openbox - Windowdecorations

"Openbox has an IRC channel on oftc stealthily called #openbox."

I guess that's the best place to ask wink

http://openbox.org/wiki/Openbox:Community_portal


Start Distrohopping here! -> Break your own... cool  VSIDO  cool LinuxCNC  kiss Frugalware <- It's all just a kernel.

Offline

#17 2012-10-31 19:39:43

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Re: Openbox - Windowdecorations

I know, machinebacon, but to be honest, I didn't went that way, because I fear, they might recomment
reading the scource-code...

But that's unfair, I know, since I haven't tried it. Maybe they are very kind and patient !
And there are some other questions, OB related, which I can't assume to be in the knowledgebase of most, if not any users.

What also prevents me of using irc is my extremly limited knowledge in web-security. I remember, once I was there on irc, but I got told to do something, what looks not too save to me, so I cancelled the connection.

Another solution were, to mask the question as feature-request, and post it in that section. The mailinglist is to confusing for me ( I only have sawn the archived version).

Offline

#18 2012-10-31 19:42:14

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,075

Re: Openbox - Windowdecorations

Oh just do it! Have a look at the openbox wiki pages at least. cool

Offline

#19 2012-10-31 19:43:45

machinebacon
#! unstable
From: PRC
Registered: 2009-07-02
Posts: 6,212
Website

Re: Openbox - Windowdecorations

So you want to swim without getting wet big_smile

The IRC is a comparably safe place, fire up Xchat, enter the server name, then the channel, ask your question, wait 10 minutes, then leave wink They won't bite your head off...


Start Distrohopping here! -> Break your own... cool  VSIDO  cool LinuxCNC  kiss Frugalware <- It's all just a kernel.

Offline

#20 2012-10-31 20:34:56

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Re: Openbox - Windowdecorations

Yes, you both are right ! And I know, there are much useful infos on the mailinglists and also at the
feature-requests, and the irc should be a try worth,too...

Once I was on the feature-requests, one of the gurus there presented on the fly the "Control-Key - Trick".
Do you know the "Ctrlkey-Trick" ?
Hold down Ctrl while you are taking a menu-action, and the menu will stay on the screen !
Only works in OB, I believe.

And there may be many others...

Offline

#21 2012-11-01 20:30:42

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Re: Openbox - Windowdecorations

Ooops, mixed something up ! Just saw, there is no deco-/border- on/off in wmctrl !

I searched all the apps I used in this context, but didn't find it yet again. But I see it clearly infront
of my eyes : Somewhere a toggling-decos-on/off-option, and there, if the deco is off, the extra option
of displaying the border around the window.

It must be somewhere...

But if I find it again, I have nethertheless to know the settings for that particular window,outside
the rc.xml.

As a workaround, I could write the different settings into the rc.xml and perform a refresh for every window
so  every window has its own rc.xml !

Have subscribed to the OB-Mailinglist, will see, if I have luck...

Wow,  just got the new forum-theme, great !

Offline

#22 2012-11-18 22:02:20

errorist
#! Member
Registered: 2012-05-24
Posts: 80

Re: Openbox - Windowdecorations

I_don't_be_lieve_it !!!

Just played around with "swisswatch" and regarded a strange behaviour, it
won't take focus for some actions.
So I xprop-ed it, to see, what there might be the reason.
Luckily, I had removed the decos, to have the clock displayed purely on the screen.
Scrolled through Xprop's output, and what did I see ?

The "_NET_WM_STATE(ATOM)"-property, which I often use to check, wether an
app has set "_NET_WM_STATE_SKIP_PAGER" and such, surprisingly shows
"_OB_WM_STATE_UNDECORATED" !!!

The existing deco gets not marked there, maybe too obviously, and I had never
looked through Xprop for an undecorated app !

Sometimes, you can't think stupid enough...

I was short before cancelling the decos, so everything can go on its planned route !

Thanks meanwhile,

errorist

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo