SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-09-07 00:47:49

hardran3
#! Junkie
From: forest town, lake land
Registered: 2011-02-26
Posts: 360

Script to disable cairo-compmgr.

I usually, but not always, run cairo-compmgr. I also have several programs that have "issues" with Cairo-compmgr. So I made a crappy script that checks if cairo-compmgr is running. If not it runs your program straight-away. If it is running it will disable it, run your program, and then restart it afterwards.

I saved it in my ~/bin directory as no-comp

#!/bin/bash
# a little script to disable cairo compositing, if it is running, when executing a
# program.

if [ -z "$(pgrep cairo-compmgr)" ]
    then
        $*
    else
        killall cairo-compmgr
        $*
        cairo-compmgr -n &
fi
exit

Once it is in place and has been made executable you are good to go. To run your favourite game without compositing just do this

no-comp warzone2100

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo