Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old February 10th, 2009   #1
Hakimio
Just Give Me the Beans!
 
Hakimio's Avatar
 
Join Date: Nov 2006
Location: Lithuania
Beans: 58
Ubuntu 8.10 Intrepid Ibex
Lightbulb [HOWTO] Turn gnome-terminal into tilda (quake) like pop-up terminal

HOWTO: Turn gnome-terminal in tilda (quake) like pop-up terminal

Intro

Why would you want to turn gnome-terminal into pop-up console when there is tilda already? Actually there is only one simple reason: tilda doesn't support drag and drop functionality. If you don't need that you are better off just installing and configuring tilda.

Guide
  1. Let's install all the software we'll need:
    1. Code:
      sudo apt-get install devilspie xbindkeys
    2. launch-restore
  2. Open gnome-terminal, select Edit -> Profile Preferencies, "Title and command" tab and specify some initial title (we'll use "Terminal" (without quotes) in this example)
  3. Select View and uncheck "Show Menubar" (you'll still be able to enable it by right clicking somewhere on the terminal)
  4. Open devilspie rule for gnome-terminal:
    Code:
    gedit ~/.devilspie/terminal.ds
  5. Edit it (note the comments):
    Code:
    ; rule for gnome-terminal
    ( if 
    ( is ( window_name ) "Terminal" ) 
    ( begin 
    ( focus )
    ( skip_pager )
    ( skip_tasklist )
    ( stick )
    ( undecorate )
    ; Terminal position: x:660, y:400 window size: 620x340
    ( geometry "660x400+620+340" )
    ( println "match" )
    )
    )
  6. Open xbindkeys config:
    Code:
    gedit ~/.xbindkeysrc
  7. Remove default rules (as they in most cases are hindering more than helping) and add our own rule(see tips section for a tip how to define your own hotkey):
    Code:
    #Open/restore gnome-terminal by pressing Alt+Z
    "launch-restore Gnome-terminal gnome-terminal"
    mod1+Z
  8. Now specify some handy shortcut for minimizing apps:
    • Gnome (default ubuntu desktop manager):
      Code:
      gnome-keybinding-properties
    • XFCE (default xUbuntu desktop manager):
      Code:
      xfce-setting-show xfwm4
  9. Add xbindkeys and devilspie to autostarted application list:
    • Gnome:
      Code:
      gnome-session-properties
    • XFCE:
      Code:
      xfce4-autostart-editor
  10. Log-out, log-in and press Alt+Z (or any other keyboard shortcut you specified in xbindkeys config) to start/show the terminal and the shortcut you specified for minimizing applications to hide it.
  11. Enjoy!

Tips
  • xbindkeys has a handy tool for finding out how to define some hotkey:
    Code:
    xbindkeys -k
    After executing the command just press some keys at once and you should see two ways to define the key combination.
  • You can use gdevilspie devilspie gui to add new rules.
  • You can use xbindkeys-config xbindkeys gui to add new keyboard shortcuts.

Similar guides
HOWTO: Terminal as the desktop background.
Attached Images
File Type: gif Screenshot.gif (411.7 KB, 172 views)

Last edited by Hakimio; February 13th, 2009 at 05:42 AM..
Hakimio is offline   Reply With Quote

Bookmarks

Tags
gnome-terminal, pop-up, pop-up terminal, quake, tilda

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 01:48 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry