Open the terminal in a specific size and position in Ubuntu/ Linux Mint

In Ubuntu or Linux Mint and many other distros, when you open the terminal, the window will appear at the top left corner of the desktop screen and I usually have to drag it down to the bottom left of the desktop. If you dont like the default position and size of the start up window, you can edit it easily.


There are in fact many methods to customize the start up position of the terminal, but in this article I will show you a simple way to do the task without installing anything. In Ubuntu or Linux Mint Cinnamon, just open the terminal and run the following command:

sudo gnome-desktop-item-edit /usr/share/applications/gnome-terminal.desktop

If you use MATE, the command will be

sudo mate-desktop-item-edit /usr/share/applications/mate-terminal.desktop

After you hit enter, you will see the properties window of the launcher for the terminal.
 

In the command tab, just append this option after the part "mate-terminal" (or "gnome-terminal"):
 
--geometry=100x50+800+300

 What this means:
100: the width of the terminal ( in characters)
50: the height ( in lines)
800: x position of the terminal when you open it up
300: y position


Just change the numbers into whatever values you prefer then click on the Close button and everything is done. Next time you open the terminal, the terminal window will appear at the new position instead of the top left corner of the desktop screen  


source http://www.linuxandlife.com

No comments:

Post a Comment

Find Us On Facebook

Related Posts Plugin for WordPress, Blogger... Linux Directory