Dissable and Enable Compiz help

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
mikedmor
Level 1
Level 1
Posts: 5
Joined: Sat Feb 21, 2009 5:50 pm

Dissable and Enable Compiz help

Post by mikedmor »

Hi im working on making it so that when ever i start one of my games using Wine that all the compiz effects are turned off then when the game closes they automatically turn back on. I did a little research to find the commands to do this and found this:

Code:

sudo killall avant-window-navigator
killall compiz.real
xfwm4

#and to restart Engage
engage -b 70707099 -R 1 -Z 2 -d 0.32 -i 1 -I 1 -T

My question is how do i make this code work when i start up a certain wine App and then when the app closes make the other command work to get my effects working again?

-Mike
James McKenzie

Dissable and Enable Compiz help

Post by James McKenzie »

mikedmor wrote:
Hi im working on making it so that when ever i start one of my games using Wine that all the compiz effects are turned off then when the game closes they automatically turn back on. I did a little research to find the commands to do this and found this:

Code:

sudo killall avant-window-navigator
killall compiz.real
xfwm4

#and to restart Engage
engage -b 70707099 -R 1 -Z 2 -d 0.32 -i 1 -I 1 -T

My question is how do i make this code work when i start up a certain wine App and then when the app closes make the other command work to get my effects working again?

-Mike

Use a UNIX script to run the program and point the menu item at the
script. Since this is specific to your Linux distribution and windows
manager, I would ask in their support forums how to do this.

James McKenzie
mikedmor
Level 1
Level 1
Posts: 5
Joined: Sat Feb 21, 2009 5:50 pm

Post by mikedmor »

isnt this the support forums?

And im using Ubuntu 8.10
James McKenzie

Dissable and Enable Compiz help

Post by James McKenzie »

mikedmor wrote:
isnt this the support forums?

And im using Ubuntu 8.10
What you would have to do is edit the menu item within Gnome/KDE to call
a UNIX script vice calling wine directly. I don't know how to do this,
that is why I recommended visiting your Linux Distribution support
pages. It is possible that someone else here can help. However,
compliz issues are technically off-topic here per the moderators. Would
it be possible to see what you can find on the Ubuntu forums as far as
editing menu items?

James McKenzie
mikedmor
Level 1
Level 1
Posts: 5
Joined: Sat Feb 21, 2009 5:50 pm

Post by mikedmor »

well thats where i went to first for help cause i figured they would know more about it. But my post has not been answered by anyone after two days. so i kinda gave up... :(
James McKenzie

Dissable and Enable Compiz help (Need Scripting help in Linu

Post by James McKenzie »

mikedmor wrote:
well thats where i went to first for help cause i figured they would know more about it. But my post has not been answered by anyone after two days. so i kinda gave up... :(
Ouch! At this point all I can provide for help is to use Google and see
if you can find something on how to call a script from a menu item in
Ubuntu. My knowledge of that distribution is very limited as I only
used it as a live boot CD a long time ago (pre 7.0 days I think.) My
experience is more along RedHat/CentOS/Fedora and I've been away from
them for a while (Fedora 4 is the last distribution I installed and I do
have Fed 9 disks here, but I don't have the time to load them.)

Good luck and maybe someone else here will be able to provide more
assistance.

James McKenzie
User avatar
Daemon
Level 4
Level 4
Posts: 101
Joined: Wed Nov 12, 2008 2:24 pm

Post by Daemon »

If you want to do it the manual way install Fusion-icon and add it to your session startup to switch window managers easily.
mikedmor
Level 1
Level 1
Posts: 5
Joined: Sat Feb 21, 2009 5:50 pm

Post by mikedmor »

no. i already have the command to do it. i just need to know how to link it all together.

i just need to know what im suppose to do with the code (step by step, im new to this) and how do i tell the shortcut to run it? maybe i can have it run then have the code wait till the app closes then it runs a close script that tells it to restart Compiz?
User avatar
Daemon
Level 4
Level 4
Posts: 101
Joined: Wed Nov 12, 2008 2:24 pm

Post by Daemon »

You should look over at the programming section of the ubuforums. That might help you get pointed in the right direction-> Programming
Locked