PDA

View Full Version : Tile plugin


mikedee
December 26th, 2006, 04:11 PM
Here is a new simple plugin which may be useful. It seems to run perfectly.

These are the default keybindings.

Vertically - Super + Shift + w
Horizontally - Super + Shift + q
Tile - Super + Shift + a
Cascade - Super + Shift + s
Restore - Super + Shift + z

http://www.anykeysoftware.co.uk/compiz/plugins/tile.tar.gz

See this forum post for more info.

http://forum.beryl-project.org/viewtopic.php?f=56&t=1341

Written by Pichalsi

lagorgy
December 26th, 2006, 05:02 PM
thx! i love useful plugins

lagorgy
December 26th, 2006, 05:08 PM
just 1 bug, when i tilecascade and tiletile the title bar of the upper windows hide behind gnome panel.

pichalsi
December 26th, 2006, 11:40 PM
just 1 bug, when i tilecascade and tiletile the title bar of the upper windows hide behind gnome panel.
Thanks for the bug i fixed it but only for beryl, hopefully mikedee will change it here with the last version on beryl forum

mikedee
December 27th, 2006, 02:10 AM
Thanks, I have updated it now (I am going to write a script to do it one of these days :roll: )

I also removed your FILE*f=fopen("/home/miso/pici","a+"); line, I assume it was for debugging ;)

pichalsi
December 27th, 2006, 02:48 PM
Thanks, I have updated it now (I am going to write a script to do it one of these days :roll: )

I also removed your FILE*f=fopen("/home/miso/pici","a+"); line, I assume it was for debugging ;)
lol youre right :)

mikedee
January 22nd, 2007, 02:11 AM
I have just updated this plugin, it has different animation options which you must enable first.

riffer7
November 19th, 2007, 12:29 AM
Im sorry, Im somewhat new to this stuff and I don't know how to install the Tile plugin into Compiz Fusion, I tried going to the directory and typing Make, but I got this error Message. How can I install this plugin? I really miss it xD

-e compiling : tile.c -> build/libtile.loPackage x11 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x11.pc'
to the PKG_CONFIG_PATH environment variable
No package 'x11' found
Package compiz was not found in the pkg-config search path.
Perhaps you should add the directory containing `compiz.pc'
to the PKG_CONFIG_PATH environment variable
No package 'compiz' found
/bin/sh: libtool: not found
make: *** [build/libtile.lo] Error 127

Deciare
November 19th, 2007, 12:47 AM
You will need development header and libraries from Compiz and libX11, and potentially other files, to compile a plugin from source code. Which Linux distribution are you using? The exact packages you need to install and how you would install them varies between distros.

riffer7
November 19th, 2007, 08:02 PM
I am using Ubuntu 7.10.
About libraries from x11, libx11-dev is selectable from synaptic, are those the headers I need to install?
For compiz, is that compiz-dev?
Thank you very much for your help.

Deciare
November 19th, 2007, 08:15 PM
I am using Ubuntu 7.10.
About libraries from x11, libx11-dev is selectable from synaptic, are those the headers I need to install?
For compiz, is that compiz-dev?
Thank you very much for your help.
You can certainly do it that way, yes. ^_^ I think you'll need more than just those two, so the package contents search at http://packages.ubuntu.com will be most helpful if you decide to do it that way.

There is also a comprehensive list of every package you're likely to need for compiling Compiz plugins in Fyda's guide to compiling Compiz Fusion from git on Ubuntu Feitsy (http://forum.compiz-fusion.org/showthread.php?t=1985) (which mostly also applies for Gutsy). Here are the commands straight out of that thread:
sudo apt-get install git-core automake build-essential intltool libtool python-pyrex python2.5-dev xsltproc
sudo apt-get build-dep compiz

chh.gx7
December 10th, 2007, 04:25 PM
Sorry to post this here (hassling to register Bugzilla for a tiny matter), but left tiling mode is currently broken for the windows placed to right side.
diff --git a/tile.c b/tile.c
index 7e47195..125abeb 100644
--- a/tile.c
+++ b/tile.c
@@ -889,7 +889,7 @@ applyTiling (CompScreen *s)
else
{
x = workArea.x + (workArea.width * occupancy / 100);
- y = workArea.y + (i * height);
+ y = workArea.y + ((i - 1) * height);
winWidth = (workArea.width * (100 - occupancy) / 100);
winHeight = height;


I hope some dev accept this patch.

TIA.

TheSatori
December 19th, 2007, 11:00 PM
Greetings,

I am also using Ubuntu 7.10, and tried following the instructions provided by Deciare. The command sudo apt-get build-dep compiz reported that I also needed libcairo2-dev to be able to compile compiz plugins, so I installed that as well.

I was unable to download the tile plugin from http://www.anykeysoftware.co.uk/compiz/plugins/tile.tar.gz, but I found the project at http://gitweb.opencompositing.org/?p=fusion/plugins/tile and grabbed a snapshot of the repository there.

Now, when I try running make, I get an error reporting the lack of a file tile_options.h. Some details follow:

thesatori@lappie:~
> cd /home/thesatori/compiz/tile

thesatori@lappie:~/compiz/tile
> ls -a
. .. Makefile plugin.info tile.c tile.xml.in

thesatori@lappie:~/compiz/tile
> make
convert : tile.xml.in -> build/tile.xml
bcop'ing : build/tile.xml -> build/tile_options.h/bin/sh: --header=build/tile_options.h: not found
make: *** [build/tile_options.h] Error 127

thesatori@lappie:~/compiz/tile
> ls -Ra
.:
. .. build Makefile plugin.info tile.c tile.xml.in

./build:
. .. tile.xml

thesatori@lappie:~/compiz/tile
>

I imagine that the make command is supposed to generate tile_options.h, as hinted by the output from the make command. However, when the make script checks for the existence of tile_options.h, it is nowhere to be found.

I am sadly no expert in writing Makefiles, so I cannot immediately point out the problem. Anyone have any ideas on how I can proceed?

Thanks in advance :)

Cheers,
TheSatori.

(Edit: This question is also posed in the equally relevant thread (http://forum.compiz-fusion.org/showthread.php?t=5303), in this post (http://forum.compiz-fusion.org/showpost.php?p=42870&postcount=108), concerning the installation method I applied, which was mentioned here.)