Monday, May 18, 2015

Tweak Terminal Appearance in XFCE4 Ubuntu

I have spent some time recently to fine-tune the looks of my Ubuntu machine in XFCE4. I have slightly modified my conky, created a customized desktop background, started tweaking things under the hood and I have also given some time and thought to the terminal.

The terminal with full black background looks like my computer came from the 90's, so I wanted to give it a fresher, more modern look. I wanted to do the following:
  • Add a transparent background that shows the contents behind the window. This is useful if e.g. I am searching for something on the web and have to issue some commands at the same time. I can see through the window and work faster.
  • Give the window some lighter colours
  • Remove window frame
It is pretty easy to set up these things, everything can be done from within the menus in the terminal. Simply go to  Edit/Preferences and set it the way you want it to look.

Window Management Tweaks

A little trouble came when setting up the transparent background. Namely, it wouldn't show the contents directly behind the window, but rather a greyed out section of the desktop background. This became annoying almost immediately.

The solution was to go to Settings/Settings Manager/Window Management Tweaks/
Settings menu in Xfce4 - Look at Window Manager Tweaks
And tick the checkbox for Enable display compositing.
Window Manager Tweaks menu - check the first tickbox on the top left
After this the terminal window should be transparent, as much as set in the terminal settings menu. Also, if you want to make it look even cooler, you can set it to be more transparent while moving! This applies to all windows on your machine and it not only looks nice, but allows you to roughly see what you will cover with the window. It is actually useful.

Terminal Settings

You wouldn't believe who much cooler it looks like if you take out this option. And don't worry about the closing/minimizing of the window, you can get used to it pretty easily.
  • Close: Ctrl + Shift + Q
  • Maximize: F11

Remove Borders

To disable border on new terminal windows go to Terminal/Edit/Preferences/Appearance
Adjusting temrinal appearance
And uncheck the Display borders around new windows.

Make the Terminal Transparent

This is where you can change the actual transparency of the terminal only. From the "appearance" tab (see above) select Transparent Background in the Background options and adjust the slider to your liking. I am using 80% as this allows me to clearly see the text in the terminal window as well as roughly see the contents behind the window.

This is especially useful when I have to look up references on the internet and copy commands form the browser. I can simply go full screen with the terminal and still see the commands in my browser that I have to type. It also gives a smoother look to the whole thing and doesn't feel so monotone.

Close the terminal and restart it. VoilĂ ! Let me know what you think and if you have some cool customizations on your UI please share it!

Monday, May 11, 2015

How to Install .ttf Fonts "Manually"

Problem

I just had  a .ttf font I wanted to install to use in conky, but by double-clicking and executing it, the installer (font-viewer) failed. I received the error message "Install Failed". No clue why this has happened as I have previously installed fonts this way.
"Install Failed" message when trying to install a ttf font
"Install Failed" message when trying to install font


I knew about gnome-font-viewer that I could get from the Software Centre, but I didn't feel like installing another software just to get a new font. There has to be another way.

Solution

The solution, turned out, was quite simple. Copy the .ttf file to ~/.fonts/ and you are good to go. No logout or restart is needed, nothing.

So from the terminal,

cp /route/to/font.ttf ~/.fonts/

After this when starting a document editing software, e.g. AbiWord, the new fonts will be available.