LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-04-2011, 12:21 AM   #1
Berrex
LQ Newbie
 
Registered: Feb 2011
Distribution: Arch
Posts: 6

Rep: Reputation: 0
Devilspie and Compiz Viewports on Multiple Rows


Hey everybody. I'm a little difficulty with Devilspie. First of all, I installed gDevilspie and am using that to configure it, and I have Compiz running with a 2x2 viewport layout (2 horizontal and 2 vertical viewports).

I have Devilspie working beautifully for any application that is assigned to either viewport 1 or 2. However, if I try to set them to viewports 3 or 4, the viewports on the bottom, Devilspie does not do anything.

Devilspie does not give me any errors when I run it from the terminal. What I've noticed is that it only seems to work with horizontal viewports. I changed the viewport layout from 2x2 to 4x1 (so they were all on a single row), and then setting viewports 3 and 4 worked beautifully. However, with a 2x2 layout, I can only use viewports 1 and 2.

Furthermore, I noticed that if I had an application set to, say, viewport 1 (e.g., Firefox), then it would open in viewport 3 if I was currently viewing viewport 4. In other words, it's treating my viewports as if I have two sets of viewport 1 and viewport 2; one set on the top row, and the second on the bottom row.

I'm not sure what's causing this, or if there's some sort of trickery that needs to be done to make the bottom row of viewports work, but any help would be appreciated.

In case it's needed, I'm running Ubuntu 10.10, devilspie 0.22, gdevilspie 0.5, and compiz 0.8.6. Pasted below is one of the problem scripts (note that if I were to set it to viewport 1 or 2, it would work fine).

Code:
; generated_rule XChat
( if 
( begin 
( is ( application_name ) "xchat" )
) 
( begin 
( maximize )
( set_viewport 3 )
( println "match" )
)
)
Thanks.
 
Old 02-07-2011, 01:21 PM   #2
Snow Pickles
LQ Newbie
 
Registered: Feb 2011
Distribution: Ubuntu 10.10
Posts: 1

Rep: Reputation: 0
I just ran into the same problem and found out that devilspie and compiz just don't work together. If it helps, Compiz does have some of the functionality of devilspie. Open up the CompizConfig Settings Manager through System->Preferences-> CompizConfig Settings Manager (just in case you don't have that , sudo aptitude install compizconfig-settings-manager) and then scroll down to "Window Management." Enable and explore the "Place Windows" plugin, it should have most of the settings you're looking for.
 
Old 02-08-2011, 02:16 AM   #3
Berrex
LQ Newbie
 
Registered: Feb 2011
Distribution: Arch
Posts: 6

Original Poster
Rep: Reputation: 0
Oh, good call! I didn't realize Compiz had such functionality. Window Management is working great for forcing windows to open in specific viewports, with the exception of Rhythmbox. For some reason it doesn't work with Rhythmbox at all, but Googling revealed that this is a very common bug (at least, it is for Ubuntu). I haven't found any solutions for it, so I guess I'll have to live with it.

As for pinning windows to all desktops (making them sticky), I was able to do that in "Window Rules." So now I have Pidgin, Terminal, and Gedit remaining on all desktops. Nice! No more need for tinkering with Devilspie.

Thanks for your answer. I'll go ahead and mark this thread as "solved" and give you a +rep.
 
  


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
can vim have tabs attached to viewports instead of viewports attached to tabs? frznchckn Linux - Software 0 11-17-2010 08:15 PM
Compare two fields on consecutive rows and print the two rows aditi_borkar Linux - Newbie 3 04-09-2009 05:49 AM
Need help running devilspie asdc Linux - Newbie 1 02-20-2007 05:35 PM
LXer: Vim tips: Using viewports LXer Syndicated Linux News 0 05-10-2006 07:33 PM
devilspie and blackbox Dimi Tag Linux - Software 0 09-17-2005 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 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