What's new

Tutorial How to Embed Terminal into Desktop using Compiz

K

Jambe

Enthusiast
Messages
108
Reaction score
76
Points
85
Sin$
7
Hey, I realized I Messed Up on the Name could a Moderator Fix That?

Firstly you need to make sure you have Compiz installed Go to System > Preferences > Compiz Settings Manager.

If that is not there then open a terminal and do
Code:
sudo apt-get install compizconfig-settings-manager

1. Configuring the Terminal

1.1 Open a terminal and go to File > New Profile, then enter a name for your profile, let's say trans777. Why trans777? Because every window that is called like that will then inherit the properties of our embedded terminal so we want a name that we never use on any other application.

1.2 On the first tab "General", uncheck: "Show menubar by default in new terminals".

Image
2009-05-19_203005.png

1.3 On the second tab, "Title and commands", under "When terminal commands set their own titles", make sure you have selected "Keep initial title" and under "Initial title", enter "trans777" (without the quotes):

1.4 On the "Background" tab, select "Transparent background" and set it's transparency to the minimum (0).


1.5 On the "Scrolling" tab, under "Scrollbar is" select "Disabled".

And we are done with the terminal configuration.

2. Configuring the Compiz settings

2.1 Go to System > Preferences > CompizConfig Settings Manager.

Under "General", go to "General Options" and on the first tab, uncheck "Hide skip taskbar windows".

2009-05-19_203902.png

2.2 Make sure "Window Decoration" Compiz plugin is enabled (checked) (under "Effects") and in the "Decoration Windows" field, enter this (presuming your terminal profile name is trans777):

Code:
(any) & !(title=trans777)

Image
2009-05-19_204124.png

2.3 Go to Window Rules plugin (under Window Management) in CompizConfig Settings Manager, make sure the plugin is enabled (checked) and in the following fields: "Skip Taskbar", "Skip pager", "Below", "Sticky", "Non movable windows", "Non Resizable Windows", "Non minimizable windows", "Non Maximizable windows" and "Non closable windows", enter this:

Code:
title=trans777

3. Running the terminal embedded into the background

3.1 To run it, you need to specify the terminal size. I can't tell you exactly what size and position to use for the terminal but I can tell you what worked for me:

Code:
gnome-terminal --window-with-profile=trans777 --geometry 100x35+20+50 &

Hit Alt + F2 on your keyboard and run the above command. That will run the terminal with the profile called "trans777". You can play with the values of 100x35+20+50 to change it's size / position.

3.2 To run it when your computer starts, you need to run the above command AFTER Compiz starts so to do that, create a file, let's say "terminal.sh" in your home folder and with the following content:

Code:
#!/bin/bash
sleep 20 && 
gnome-terminal --window-with-profile=trans777 --geometry 67x35+220+50 &

Obviously, if you want other values for your terminal, modify it in the above command.

Then make it executable:

Code:
chmod +x terminal.sh


Then go to System > Preferences > Startup Applications, click "Add", in the Command field enter the full path to your start_terminal.sh file, in the Name field enter whatever you want and that's it.
 
Operating System
  1. Linux
ModsBABY HD

ModsBABY HD

Contributor
Messages
3,312
Reaction score
539
Points
375
Sin$
0
Hey, I realized I Messed Up on the Name could a Moderator Fix That?

Firstly you need to make sure you have Compiz installed Go to System > Preferences > Compiz Settings Manager.

If that is not there then open a terminal and do
Code:
sudo apt-get install compizconfig-settings-manager

1. Configuring the Terminal

1.1 Open a terminal and go to File > New Profile, then enter a name for your profile, let's say trans777. Why trans777? Because every window that is called like that will then inherit the properties of our embedded terminal so we want a name that we never use on any other application.

1.2 On the first tab "General", uncheck: "Show menubar by default in new terminals".

Image
2009-05-19_203005.png

1.3 On the second tab, "Title and commands", under "When terminal commands set their own titles", make sure you have selected "Keep initial title" and under "Initial title", enter "trans777" (without the quotes):

1.4 On the "Background" tab, select "Transparent background" and set it's transparency to the minimum (0).


1.5 On the "Scrolling" tab, under "Scrollbar is" select "Disabled".

And we are done with the terminal configuration.

2. Configuring the Compiz settings

2.1 Go to System > Preferences > CompizConfig Settings Manager.

Under "General", go to "General Options" and on the first tab, uncheck "Hide skip taskbar windows".

2009-05-19_203902.png

2.2 Make sure "Window Decoration" Compiz plugin is enabled (checked) (under "Effects") and in the "Decoration Windows" field, enter this (presuming your terminal profile name is trans777):

Code:
(any) & !(title=trans777)

Image
2009-05-19_204124.png

2.3 Go to Window Rules plugin (under Window Management) in CompizConfig Settings Manager, make sure the plugin is enabled (checked) and in the following fields: "Skip Taskbar", "Skip pager", "Below", "Sticky", "Non movable windows", "Non Resizable Windows", "Non minimizable windows", "Non Maximizable windows" and "Non closable windows", enter this:

Code:
title=trans777

3. Running the terminal embedded into the background

3.1 To run it, you need to specify the terminal size. I can't tell you exactly what size and position to use for the terminal but I can tell you what worked for me:

Code:
gnome-terminal --window-with-profile=trans777 --geometry 100x35+20+50 &

Hit Alt + F2 on your keyboard and run the above command. That will run the terminal with the profile called "trans777". You can play with the values of 100x35+20+50 to change it's size / position.

3.2 To run it when your computer starts, you need to run the above command AFTER Compiz starts so to do that, create a file, let's say "terminal.sh" in your home folder and with the following content:

Code:
#!/bin/bash
sleep 20 && 
gnome-terminal --window-with-profile=trans777 --geometry 67x35+220+50 &

Obviously, if you want other values for your terminal, modify it in the above command.

Then make it executable:

Code:
chmod +x terminal.sh


Then go to System > Preferences > Startup Applications, click "Add", in the Command field enter the full path to your start_terminal.sh file, in the Name field enter whatever you want and that's it.
If you want a mod to change the name, click the Report button at the button left of your post and tell them to change the name :smile:

Otherwise good tutorial. Thought I have no idea what it's about xD Probably because I do not own Linux :o
 
Top Bottom
Login
Register