Gnome window resize not working
-
When I tried to execute
resize -s 50 50
on GNOME Terminal it will give me error "
resize: Can't get rows and columns
" The same thing is working on putty terminal as well as xterm. Is there ant equivalent command or any other way to do this task?
Do not trust a computer... Always check what computer is doing regards, Divyang Mithaiwala Software Engineer
-
When I tried to execute
resize -s 50 50
on GNOME Terminal it will give me error "
resize: Can't get rows and columns
" The same thing is working on putty terminal as well as xterm. Is there ant equivalent command or any other way to do this task?
Do not trust a computer... Always check what computer is doing regards, Divyang Mithaiwala Software Engineer
There's a command line tool called
wmctrl
which allows you to interact with the windwows manager, and it allows you to resize windows programmatically. It might be the tool you're looking for. You can install it via yum or apt-get or source, depending of course on the distro you're using. Then you can resize a window with:wmctrl -r "window title" -e 0,-1,-1,width,height
It won't let you specify number of columns and rows, but will only work with pixels, so I hope it will be ok with you anyway. :)
2+2=5 for very large amounts of 2 (always loved that one hehe!)