s0l1dsnak3123
January 5th, 2008, 06:53 PM
xbompiz - control compiz with your xbox controller
http://imageupload.com/out.php/i61755_xbompizlogo.png
This (compiled) perl script controls allows you to move the compiz cube, unfold it, and go into expo mode.
The more info here:
______ _______ _______ _______ _________ _______
|\ /|( ___ \ ( ___ )( )( ____ )\__ __// ___ )
( \ / )| ( ) )| ( ) || () () || ( )| ) ( \/ ) |
\ (_) / | (__/ / | | | || || || || (____)| | | / )
) _ ( | __ ( | | | || |(_)| || _____) | | / /
/ ( ) \ | ( \ \ | | | || | | || ( | | / /
( / \ )| )___) )| (___) || ) ( || ) ___) (___ / (_/\
|/ \||/ \___/ (_______)|/ \||/ \_______/(_______/
#---------- Description ----------#
Xbompiz is a script that uses the xpad driver to control compiz fusion
using the DBUS plugin.
#---------- Installation ---------#
To Install xbompiz, you must ensure you have the following prerequisites:
- You must have compiz fusion installed and working,
- You must have the DBUS plugin installed and activated in compiz fusion,
- You must have an xbox or xbox 360 controller installed and working with
the xpad driver (you can test it with a game called TuxRacer, or by
running "cat /dev/input/js0"),
- You must have perl installed.
#------------ Modules ------------#
xbompiz uses the following perl modules:
-Linux::Joystick
If you are compiling the source, make sure you have installed these
modules with CPAN, otherwise, it shouldn't matter.
#-------------- Use --------------#
To use xbompiz, simply run the program in your terminal like so:
#---------------------------------------------#
|'/home/snak3/Desktop/xbompiz/xbompiz' |
#---------------------------------------------#
The xbompiz will automatically find your xbox controller and you will be
able to use the buttons to move the cube.
The controls are as follows:
#---------------- controls ----------------#
| A - unfold Cube |
| X - turn cube left |
| B - turn cube right |
| Xbox guide button - initiate cube rotate |
#------------------------------------------#
#------------ contact ------------#
you can contact me by email at:
s0l1dsnak3123 @ gmail.com
or by msn at:
s0l1dsnak3123@hotmail.com
no spam please :)
#------------- Thanks ------------#
A great big thank you to:
-#perl for their brilliant support ;)
-CPAN - wow what a brilliant idea
-#compiz-fusion for helping me deactivate the cube
#--------------------------------#
|Copyright (c) 2007 John Hamelink|
#--------------------------------#
Task list:
I want to be able to spin the cube with the joystick of the controller.
Use the joystick as a mouse (for firepaint, annotate, etc.)
Use key combos to do things like window switching, bring up and accessability keyboard, etc.
Downloads:
xbompiz version 0.15
binary (http://www.filecrunch.com/file/~jab5dg)
source (http://www.filecrunch.com/file/~wlrnqs)
xbompiz version 0.1
binary (http://www.filecrunch.com/file/~wlrnqf)
source (http://www.filecrunch.com/file/~ytoesn)
Changelog:
Added detection of different compiz versions (0.15),
Xbompiz 0.1 released,
I need people to test my script, as I don't know anyone who owns linux and an xbox controller (apart from me, obviously). This script works fine on my 0.6.0 compiz and ubuntu gutsy gibbon. If you have any errors, please let me know :D
May I also add that this script may be of use to those with a joystick - as the xpad driver essentially turns the controller into a joystick, so yeh - try it out :P
And yes - I know this is a pointless project - but I have learned a ton and its quite a cool way to show off compiz ;)
http://imageupload.com/out.php/i61755_xbompizlogo.png
This (compiled) perl script controls allows you to move the compiz cube, unfold it, and go into expo mode.
The more info here:
______ _______ _______ _______ _________ _______
|\ /|( ___ \ ( ___ )( )( ____ )\__ __// ___ )
( \ / )| ( ) )| ( ) || () () || ( )| ) ( \/ ) |
\ (_) / | (__/ / | | | || || || || (____)| | | / )
) _ ( | __ ( | | | || |(_)| || _____) | | / /
/ ( ) \ | ( \ \ | | | || | | || ( | | / /
( / \ )| )___) )| (___) || ) ( || ) ___) (___ / (_/\
|/ \||/ \___/ (_______)|/ \||/ \_______/(_______/
#---------- Description ----------#
Xbompiz is a script that uses the xpad driver to control compiz fusion
using the DBUS plugin.
#---------- Installation ---------#
To Install xbompiz, you must ensure you have the following prerequisites:
- You must have compiz fusion installed and working,
- You must have the DBUS plugin installed and activated in compiz fusion,
- You must have an xbox or xbox 360 controller installed and working with
the xpad driver (you can test it with a game called TuxRacer, or by
running "cat /dev/input/js0"),
- You must have perl installed.
#------------ Modules ------------#
xbompiz uses the following perl modules:
-Linux::Joystick
If you are compiling the source, make sure you have installed these
modules with CPAN, otherwise, it shouldn't matter.
#-------------- Use --------------#
To use xbompiz, simply run the program in your terminal like so:
#---------------------------------------------#
|'/home/snak3/Desktop/xbompiz/xbompiz' |
#---------------------------------------------#
The xbompiz will automatically find your xbox controller and you will be
able to use the buttons to move the cube.
The controls are as follows:
#---------------- controls ----------------#
| A - unfold Cube |
| X - turn cube left |
| B - turn cube right |
| Xbox guide button - initiate cube rotate |
#------------------------------------------#
#------------ contact ------------#
you can contact me by email at:
s0l1dsnak3123 @ gmail.com
or by msn at:
s0l1dsnak3123@hotmail.com
no spam please :)
#------------- Thanks ------------#
A great big thank you to:
-#perl for their brilliant support ;)
-CPAN - wow what a brilliant idea
-#compiz-fusion for helping me deactivate the cube
#--------------------------------#
|Copyright (c) 2007 John Hamelink|
#--------------------------------#
Task list:
I want to be able to spin the cube with the joystick of the controller.
Use the joystick as a mouse (for firepaint, annotate, etc.)
Use key combos to do things like window switching, bring up and accessability keyboard, etc.
Downloads:
xbompiz version 0.15
binary (http://www.filecrunch.com/file/~jab5dg)
source (http://www.filecrunch.com/file/~wlrnqs)
xbompiz version 0.1
binary (http://www.filecrunch.com/file/~wlrnqf)
source (http://www.filecrunch.com/file/~ytoesn)
Changelog:
Added detection of different compiz versions (0.15),
Xbompiz 0.1 released,
I need people to test my script, as I don't know anyone who owns linux and an xbox controller (apart from me, obviously). This script works fine on my 0.6.0 compiz and ubuntu gutsy gibbon. If you have any errors, please let me know :D
May I also add that this script may be of use to those with a joystick - as the xpad driver essentially turns the controller into a joystick, so yeh - try it out :P
And yes - I know this is a pointless project - but I have learned a ton and its quite a cool way to show off compiz ;)