I am making a personal Desktop Environment and one of the programs I use is compiz. However, I need to execute all my components from a shell script, and every time I launch compiz it runs in its default mode. Is there any way to run Compiz from the terminal while telling it to use a CCSM profile? Thanks in advance.
No, you can't. So far, you can use
ccsm with only one from the following four options:
--help) - show the help message and exit
ccsmto the page of
PLUGIN. For example:
ccsm -p expo
--category=CATEGORY) - open
CATEGORY. For example:
ccsm -c "Window Management"
--version) -display the current version of
man ccsm to check all of these.
Meanwhile, in your script, you can play with a command similar to the following:
(ccsm &) && sleep 2 && xdotool key Tab Tab Tab Tab Tab Tab Tab Tab Tab Tab Tab Return && sleep 2 && xdotool key Tab Tab Tab Tab Tab Tab Tab Return && sleep 2 && xdotool key slash p a t h slash t o slash y o u r underscore c c s m period p r o f i l e Return
You only need to adapt it to your system.
You can accomplish this by setting a different HOME environment variable before starting compiz or ccsm.