Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-17-2006, 04:27 PM   #1
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
bash script to resize gnome terminal ?

Gnome 2.10.1
GNU bash, version 3.00.16(1)-release (i386-redhat-linux-gnu)

I have put together a simple bash script that only requires a small terminal window to be usable. Basically I use it to change tv channels on my windows box, so I like to have it open all the time. I made a launcher for the panel which simply calls the script and requires it to be run in a terminal window.

Now, I have customised the text colours, but the terminal is always a default size. I only need the terminal window to be 33 columns by 16 lines, but I can't find any info on the net on how to adjust this from the bash script. My best idea so far would be to call a second script (without requiring a terminal)that then calls gnome-terminal with dimensions and the name of the main script.

Anybody got any ideas ?
If you have, maybe you could tell me how to get bash to enforce a particular profile in gnome terminal and also hide the menu bar ...

Cheeky I know, but just the resize thing would be a great help.


Old 03-17-2006, 04:32 PM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Original Poster
Rep: Reputation: 249Reputation: 249Reputation: 249
Ok, nearly there

I got to thinking about the 2 script idea and have got it working thus :


gnome-terminal --geometry=33x16+370+670 --hide-menubar --window-with-profile=channel --command="/home/smoker/backups/"

It works, but I'd still be interested in making it happen programatically using bash from within the main script.

gnome-terminal --help is useful ;-)



btw this is what it looks like -

Last edited by smoker; 03-17-2006 at 04:48 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
change default bash directory in gnome-terminal ming0 Linux - Software 5 10-01-2009 07:54 PM
How can a bash script findout the width of the terminal window alex.e.c Linux - Software 2 10-14-2004 12:20 PM
gnome-terminal launcher script Mur Linux - Software 0 04-26-2004 11:43 AM
gnome-terminal fails to give bash prompt wfhoney Red Hat 8 04-21-2004 04:38 PM
Bash, Gnome-Terminal and Prompt Mysteries melquiades Slackware 30 11-28-2003 07:13 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration