You are not logged in.

#1 2008-09-28 15:40:24

Tib05
Member
From: France
Registered: 2007-07-02
Posts: 31

[OpenBox] making an exception to the ToggleShowDesktop command

Hi,

I put Urxvt in the background of my desktop, just as it is said in the Tips and Tricks part of the openbox' s wiki page.

But when I use the ToggleShowDesktop command, it minimizes the Urxvt window too, thing that I don't want it to be.

Is there a way to make this window persistent to the ShowDesktop command ?


Thanks a lot !

Offline

#2 2008-11-04 18:54:59

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: [OpenBox] making an exception to the ToggleShowDesktop command

I would be highly interested to know this. Actually ToggleShowDesktop minimizes also the panel (at least lxpanel), including the button which would be expected to deminimize everything. If someone is using an app which escapes from the massive minimizations perhaps we could have an hint.

Last edited by patroclo7 (2008-11-04 18:55:54)


Mortuus in anima, curam gero cutis

Offline

#3 2008-11-04 20:20:29

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [OpenBox] making an exception to the ToggleShowDesktop command

xfce-panel is not minimized when ToggleShowDesktop is used, neither is conky.

From conky config:

own_window yes
own_window_transparent no
own_window_type desktop
own_window_hints below,undecorated,sticky,skip_taskbar

One idea would be to use something like devilspie to assign different roles to terminal (like "dock") to see if this changes how it is affected by ToggleShowDesktop action.

Last edited by fwojciec (2008-11-04 20:28:01)

Offline

#4 2008-11-30 16:20:10

ilovefridge
Member
Registered: 2007-04-18
Posts: 22

Re: [OpenBox] making an exception to the ToggleShowDesktop command

Bumpy bump.

I'm also having this problem, has anyone made any progress on this? I'm using devilspie like suggested above, trying all the 'wintype's, including desktop - which is what my conky uses (works fine), but it doesn't stop gnome-terminal from minimising when ToggleShowDesktop is used. Surely there are people who have overcome this? I thought having a terminal stuck to the desktop is a pretty common thing. Thanks for any help.

This is my devilspie config. It's doing everything else I'm asking of it correctly.

(if
    (matches (window_name) "MPDdesktop")
    (begin
        (pin)
        (below)
        (undecorate)
        (stick)
        (skip_pager)
        (skip_tasklist)
        (wintype "desktop")
    )
)

Last edited by ilovefridge (2008-11-30 16:23:59)

Offline

#5 2009-06-13 01:39:27

Malstrond
Member
From: Germany
Registered: 2009-06-03
Posts: 98

Re: [OpenBox] making an exception to the ToggleShowDesktop command

I'm sorry to ressurect this, but i have been looking for this feature for so long. Has anyone found a way?

Update: I'm getting really desperate here. As I noticed that yeahconsole is another application that can circumvent this, I tried to force it to the "below" layer and use it as a terminal-on-desktop replacement. But 'xprop WM_CLASS' reports that it doesn't have this property, so I don't know how to use a per-application setting. I tried to set up a 'ToggleAlwaysOnBottom' keybinding in rc.xml, but it doesn't adhere to that either.

Update2: Well, two months and countless hours spent googling later, I gave up on this. It's weird that conky and panels can do this but no custom application.

Last edited by Malstrond (2009-08-13 20:22:53)

Offline

#6 2010-12-14 20:45:57

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 82

Re: [OpenBox] making an exception to the ToggleShowDesktop command

Sorry for resurrecting this again, but has anyone made any progress with this?

Offline

#7 2010-12-14 23:39:05

BurntSushi
Member
From: Massachusetts
Registered: 2009-06-28
Posts: 362
Website

Re: [OpenBox] making an exception to the ToggleShowDesktop command

I'm not sure that this can be done with urxvt. If you go here:

http://standards.freedesktop.org/wm-spe … #id2551529

You'll notice that the _NET_WM_WINDOW_TYPE property can only be set before the window is mapped, and that there is no way (via the standard) to change that property on the fly. Of course, you could use devilspie or xprop:

xprop -f _NET_WM_WINDOW_TYPE 32a -set _NET_WM_WINDOW_TYPE _NET_WM_WINDOW_TYPE_DESKTOP

However, while this is successful in changing the property, the window manager doesn't necessarily have to acknowledge this request (due to the standard). And apparently, Openbox doesn't.

So... You're left with what seems to be changing this property before the window is mapped. I did some digging, and downloaded the urxvt source. I modified it, and successfully got urxvt into the background, and the window still shows even when the ToggleDesktop command is issued. If you'd really like this, I've outlined how I did that. (Note that this should probably be presented with a patch and what not.)

First, download the urxvt source: http://dist.schmorp.de/rxvt-unicode/rxv … 10.tar.bz2

Extract, and cd into the src directory. Open init.C and go to line 1526, which should say "_NET_WM_WINDOW_TYPE is NORMAL, which is the default." Below that, add:

Atom desktop = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DESKTOP", false);
  XChangeProperty (dpy, top,
                   XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", false),
                   XA_ATOM, 32,
                   PropModeReplace,
                   (unsigned char *) &desktop,
                   1);

Now cd back up one directory and run

./autogen.sh && ./configure && make

To test, you can run

src/rxvt

Which should open a urxvt terminal in "desktop" mode. I cp'd it to my bin directory:

sudo cp src/rxvt /usr/bin/urxvt-destop

Please note: Making a window into a "DESKTOP" does some strange things, where normal window operations might not work. For example, you'll probably need to set the geometry (size/position) of your background terminal using the -geometry flag when launching urxvt-desktop.


Education is favorable to liberty. Freedom can exist only in a society of knowledge. Without learning, men are incapable of knowing their rights, and where learning is confined to a few people, liberty can be neither equal nor universal.

Tu ne cede malis sed contra audentior ito

Offline

#8 2010-12-15 12:32:19

STEELBAS
Member
From: The Netherlands
Registered: 2010-01-18
Posts: 82

Re: [OpenBox] making an exception to the ToggleShowDesktop command

Hey thanks, great. I'll try this sometime soon.

EDIT:

Seems to work well smile Too bad urxvt seems to use up so much memory. But that's just the way it is, I suppose.

Here's how I made it look:
yuhP9s.jpg

Last edited by STEELBAS (2010-12-15 20:11:30)

Offline

#9 2011-04-06 19:09:05

wunjo
Member
Registered: 2011-04-06
Posts: 17

Re: [OpenBox] making an exception to the ToggleShowDesktop command

This seems to be only way to keep urxvt at desktop in openbox. I had some problems with LXDE. LXDE still hides even the patched urxvt, when I click somewhere at the desktop, anyone have idea how to avoid this? I just used geometry to fullfill screen, <maximized> and <fullscreen> options in rc.xml won't work with patched version so it was quite pain in the ass to get few pixels hole hidden smile
I made patch and PKGBUILD based on rxvt-unicode-patched http://aur.archlinux.org/packages.php?ID=44649
http://myfreefilehosting.com/f/fa0048d684_0.1MB here is the rxvt-desktop.patch
not really sure are everything ok in there, haven't played with this stuff much. And not really sure does anyone have any use for this.

# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: tobias <tobias@archlinux.org>
# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org

pkgname=rxvt-unicode-desktop
_pkgname=rxvt-unicode
pkgver=9.10
pkgrel=1
pkgdesc="urxvt with desktop patch"
arch=(i686 x86_64)
depends=('gcc-libs' 'libxft' 'gdk-pixbuf2')
makedepends=('ncurses' 'perl>=5.12.2' 'pkgconfig')
optdepends=('perl: lots of utilities' 'gtk2-perl: to use the urxvt-tabbed')
provides=("rxvt-desktop")
url="http://software.schmorp.de/pkg/rxvt-unicode.html"
license=("GPL")
source=(http://dist.schmorp.de/rxvt-unicode/${_pkgname}-${pkgver}.tar.bz2 \
        ${_pkgname}.desktop ${_pkgname}.png popup-menu-hang.diff \
        font-width-fix.patch layoutgaps.patch rxvt-desktop.patch)
md5sums=('a23aa40b31e843878b6f9c44768de430'
         '5bfefa1b41c2b81ca18f2ef847330543'
         '84328cada91751df07324d95f8be4d1b'
         'aead33ba3b08eeb251fb0c1427a4a024'
         'df0c3a8b6bb0578d1b91e4081c47881c'
         '43f1654010e088ef847d75a96c705a58'
         'c4d2c97335ce70e4483983fe9e241448')
sha1sums=('54c896a4885b8984b0dfa652269c3c34c4d75f2d'
          '79b7cacb7d6ce4a34f8a31a2e33475a8f7bf69cb'
          '9ff58d7b1d60838c51c9045bc0be342fac456790'
          'ec4013f4af3a45da928b75f40fbf6389070e7fdd'
          '01ee8f212add79a158dcd4ed78d0ea1324bdc59b'
          '1299c1d46931a456ff73179ccb6df4c5d6a0c2e0'
          'bb58c4e5d34e34237da654b2dbbc3515e50ba57f')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  patch -p0 < ../popup-menu-hang.diff
  patch -p0 -i ../font-width-fix.patch
  patch -p0 -i ../layoutgaps.patch
  patch -p0 -i ../rxvt-desktop.patch

  ./configure --prefix=/usr \
    --with-terminfo=/usr/share/terminfo \
    --enable-256-color \
    --enable-font-styles \
    --enable-xim \
    --enable-keepscrolling \
    --enable-selectionscrolling \
    --enable-smart-resize \
    --enable-pixbuf \
    --enable-transparency \
    --enable-utmp \
    --enable-wtmp \
    --enable-lastlog \
    --disable-frills
  make
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  install -Dm 755 src/rxvt "/usr/bin/urxvt-desktop"
}

Offline

Board footer

Powered by FluxBB