bongtothesoo
April 27th, 2008, 10:36 PM
Hello, I'm trying to make my laptop switch to tablet/laptop mode and disable compiz at the same time.
I know that I can disable compiz with "metacity --replace" and enable it by "compiz --replace".
I have a Fujitsu T4210 and following this howto (https://help.ubuntu.com/community/T4220) I can go into tablet mode with "rotate tablet" and back to laptop with "rotate laptop".
all I want to do is write a single script that launches "metacity --replace" and "rotate tablet" (in that order) and write a script that launches "rotate laptop" and "compiz --replace" (in that order)
I tried already by creating a Tablet.sh and a Laptop.sh with the two commands in two separate lines but it doesn't seem to work.
For the Tablet.sh I didmetacity --replace
rotate tablet
and for the Laptop.shrotate laptop
compiz --replace
What am I doing wrong?
I know that I can disable compiz with "metacity --replace" and enable it by "compiz --replace".
I have a Fujitsu T4210 and following this howto (https://help.ubuntu.com/community/T4220) I can go into tablet mode with "rotate tablet" and back to laptop with "rotate laptop".
all I want to do is write a single script that launches "metacity --replace" and "rotate tablet" (in that order) and write a script that launches "rotate laptop" and "compiz --replace" (in that order)
I tried already by creating a Tablet.sh and a Laptop.sh with the two commands in two separate lines but it doesn't seem to work.
For the Tablet.sh I didmetacity --replace
rotate tablet
and for the Laptop.shrotate laptop
compiz --replace
What am I doing wrong?