Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

As the title says, I want to change the cursor of Guake to I-Beam (the vertical line). I find block cursor to be confusing sometimes. I looked into the preferences but unfortunately there is no option for the cursor. Is it possible to change?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

There is a patch at guake.org, which you can download to patch the source code, compile and install the program. This is the only way at present to get the option you want; it does work though (see screenshots below). This is how I did it.

The patch should be downloaded from here as a file; it is designed to work with the 0.42 source code, but could be tweaked to work with any source code available, such as the more recent 0.4.4. (Inspecting the 0.4.4 source code suggests that the patch might be implemented in that version, but when compiled, the option to switch to i-beam cursor didn't seem to work.)

However, it is straightforward to use the 0.42 source code, so download that file, cd to the downloads folder with terminal and unpack it with:

tar xzvf guake-0.4.2.tar.gz

Before you do anything else, remove the current version of guake if you have it installed, and then install the build dependencies and other tools with:

sudo apt-get install build-essential checkinstall 
sudo apt-get build-dep guake

As noted in my comment, to get the build-dep feature to work, you need to go to software sources and enable source code by checking the box. Then run sudo apt-get update and any build-dep commands should work. The build dependencies are also listed in the Readme file with the source code download as python-dev, libgconf2-dev, libgtk2.0-dev, python-gtk-dev.

Now, while in the folder in which you downloaded the files, copy the patch to the guake folder with

cp CursorShape.patch guake-0.4.2/

Next, cd to the guake folder and patch the source code with

patch -p1 < CursorShape.patch

Then configure and build the files with

./configure && make

The final step is to run

sudo checkinstall

but when you install it, make sure you specify the version number in the checkinstall menu as not 0.4.2, but 0.4.3 or something similar, as you will constantly be prompted to overwrite your custom version with the package version (0.4.2) if you don't specify a higher version number.

Screenshots showing the patched version preferences and the guake terminal respectively.

enter image description here

enter image description here

share|improve this answer
    
I couldn't get this command "sudo apt-get build-dep guake" working. It says "Unable to locate guake". I tried skipping it but then while executing "./configure && make" it gave some errors due to dependencies. What exactly do I need to compile? –  mAt Jan 1 '13 at 13:39
1  
@mAt To get the build-dep feature to work, you need to go to software sources and enable source code by checking the box. Then run sudo apt-get update and the build-dep command should work. The dependencies are also listed in the Readme file with the source code download. –  user76204 Jan 1 '13 at 19:18
1  
@mAt See also my edit in the answer –  user76204 Jan 1 '13 at 19:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.