Two State Lanuncher for Compositor
fourdan at xfce.org
Sun Apr 24 21:01:08 CEST 2005
That's pretty much useless IMO. Better use the env var
Just set a wrapper script to set that var prior to run the app that
doesn't support ARGB visuals, or even use an alias.
e.g with bash:
alias nedit='XLIB_SKIP_ARGB_VISUALS=1 nedit'
On Sat, 2005-04-23 at 10:36 -0700, Bob Snyder wrote:
> I like to use the compositor feature of xfwm4, but some apps don't work
> well with it. I'd like to be able to turn it on and off easily, and I've
> been trying to get the trigger launcher (aka two-state launcher) to do it.
> The trigger launcher calls a user written script to do the actual work.
> The script needs to work with three different inputs: '1' to turn the
> app on, '0' to turn the app off, and no argument to make the script
> return the current state to stdout.
> So I've got this:
> if [ "$1" = "1" ] ; then
> killall xfwm4 ; exec xfwm4 --compositor=on
> elif [ "$1" = "0" ] ; then
> killall xfwm4 ; exec xfwm4 --compositor=off
> case $? in
> 0) echo 1 ;;
> 1) echo 0 ;;
> Is there any way to query the compositor to tell if it's running?
> Perhaps there's a better way to go about the whole thing.
> Suggestions appreciated.
> Bob S.
> Xfce mailing list
> Xfce at xfce.org
More information about the Xfce