Page 1 of 1

compiz-fusion - gnome session Dbus scripts

Posted: Wed Feb 18, 2009 8:23 pm
by mcurran
I'm trying to enable a couple of compiz-fusion effects to occur by default on the gnome session startup. I've already collected the appropriate dbus scripts from users on the compiz-fusion forums, but I don't really know what to do with them. I was wondering if any Mint users with Dbus experience have any suggestions for me. Right now, I'm trying to add them to the Sessions Preferences as a new startup program/command, but it's not working. I'm familiar with startup scripts like init.d with symlinks in the appropriate runlevels, but session scripts are different I've learned and I don't know what to do with these:

Dbus script to enable compiz-fusion snow effect toggle_key by default (on gnome session startup)
dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/snow/allscreens/toggle_key org.freedesktop.compiz.activate string:'root' int32:`xwininfo -root | grep id: | awk '{ print $4 }'`

Dbus script to enable compiz-fusion slow_animations_key by default (on gnome session startup)
dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/core/allscreens/slow_animations_key org.freedesktop.compiz.activate string:'root' int32:`xwininfo -root | grep id: | awk '{ print $4 }'`

So right now: I'm entering those two scripts exactly as they appear here, in the command field under the Sessions Preferences > Startup Programs tab as a new startup program... No go... Anyone got any ideas?

Re: compiz-fusion - gnome session Dbus scripts

Posted: Thu Feb 19, 2009 8:18 am
by Husse
I'm not sure I read you right but should you not put the script in a text file (made executable) and start that?