Guake terminal showing up wrong in Unity

It seems Guake terminal is not aware of the Unity sidebar being hidden. Even when the sidebar is hidden, it still shows with a left offset that is based on the width of the sidebar.

Additionally, the width of the terminal is not decreased by the width of the left offset, which causes the terminal to appear on my second monitor as well.

Is there a way to fix this?

Guake terminal showing up incorrectly in Unity


Solution 1:

As a work-around, you can adjust the Guake terminal width to less then 100% of the screen width.

  1. Make a backup of /usr/lib/guake/guake.py for Ubuntu 12.04 and for Ubuntu 12.10 and newer, backup /usr/bin/guake file.

  2. Open a terminal and run the following command:

    For Ubuntu 12.04:

    sudo -i
    gedit /usr/lib/guake/guake.py
    exit
    

    For Ubuntu 12.10 (or newer) Guake versions, use the following command instead:

    sudo -i
    gedit /usr/bin/guake
    exit
    
  3. Then scroll down to somewhere around line 780-820 which says width = 100 - this is how it looks like:

    screen = self.window.get_screen()
    height = self.client.get_int(KEY('/general/window_height'))
    width = 100
    halignment = self.client.get_int(KEY('/general/window_halignment'))
    

    And modify the width value (percentage) to whatever you want. Save the file, restart Guake and that's it.


Reference: WepUp8 Article

Solution 2:

I had another problem. The first few lines of guake were hidden by the Unity top panel. This can be solved changing the variable "window_rect.y" in line 835 (Natty) from 0 to 30, as shown below.

window_rect.y = 30