LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-24-2006, 04:57 AM   #1
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
how do I remove windows decorations in metacity?


Some WM's allow me to launch an application, whatever, without the window decorations. I've been looking for a way to do this in metacity. I'm using Ubuntu Edgy right now and would rather not actually install a different WM just for the few things I want this for. (Rather do without.)

I've looked around and found a LQ thread with lump of code which does this... which is nice for writing my own app. But what about launching an existing one?

I've also found an "anti-theme" which has no borders, or anything else for that matter. Zero-width borders are not a problem at the theme level - but I like having borders! Just that sometimes they get in the way.

i.e. xdaliclock would be a nice bit of eye-candy for the desktop, especially with a transparent background, except for the windows border...

Thats just for the sake of a concrete example. By now there's probably a g-desklet that does the same thing. (In fact - I'm beginning to suspect that making it into a desklet is the only option.)

Last edited by Simon Bridge; 12-24-2006 at 04:58 AM. Reason: made link more visible
 
Old 12-25-2006, 08:57 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The devilspie utility can do this. There's a tutorial here. The action you are looking for is 'undecorate'.
 
Old 12-28-2006, 02:40 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Original Poster
Rep: Reputation: 198Reputation: 198
Looks good - if a wee bit beta - latest version is 0.19: source install:
Code:
devilspie$ ./configure
...
checking for WNCK... configure: error: Package requirements (glib-2.0 >= 2.9.1
        gdk-2.0
        libwnck-1.0 >= 0.17) were not met:

No package 'gdk-2.0' found
No package 'libwnck-1.0' found
gdk is 1.9 ... program wants 2.0, libwnck is 2.16.1 ... program wants 1.17? 2.17 - I guess.
I am using Edgy, fully updated. I guess I'm going to have to go outside the official repos for this huh.

However, devilspie 0.17 is available via apt. This'll do

I'm half kicking myself, since I've read of devilspie in a Linux Magazine article (magazine in the rack next to my desk even...) but didn't make the connection.

Useful link - not only supplied the solution I needed but clarified the problem itself. Namely: metacity developers are deliberately creating a lean-ish WM and so concentrate on it's core jobs. Suppressing decorations for specific windows would not be part of a core WM job.

Thanx

Last edited by Simon Bridge; 12-28-2006 at 02:43 AM.
 
Old 12-28-2006, 05:29 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Original Poster
Rep: Reputation: 198Reputation: 198
For the sake of completness... I have used the following configuration file with devilspie:
Code:
~/.devilspie$ cat xdaliclock.ds
(if
        (is (application_name) "xdaliclock")
        (begin
                (undecorate)
                (below)
                (pin)
                (geometry "+760+100")
        )
)
... this, with the command:

xdaliclock -transparent -builtin1 -fg grey

... gives pretty much what I'm after.

All I need to do is stick "devilspie" as a startup program, with xdaliclock, and I'm set.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Import KDE Styles and Windows Decorations? edwin11 Linux - Software 3 10-21-2006 02:58 AM
FC4 -- metacity burying new windows? scareduck Fedora 0 10-05-2005 12:49 PM
Can't install windows decorations Hungry ghost Linux - Software 2 04-16-2005 09:45 AM
Remove windows How?????? Zarik Linux - Newbie 2 02-15-2003 05:12 AM
Remove hda with windows scarvallo Linux - General 4 10-08-2002 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration