Make your panel awesome using tint2 in ubuntu

I am using unity on ubuntu 12.04. The version is heavily modified for my personal use. I was using tint2 as a bottom panel. Today I just tweaked it to something awesome thanks to this awesome documentation.

Customized Tint2
Customized Tint2

 

 

 

I am using code , which is a modified version of the code found in the documentation. Hope it works good for you . 🙂

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#———————————————
# BACKGROUND AND BORDER
#———————————————
# general panel settings
rounded = 7
border_width = 2
background_color = #000000 60
border_color = #ffffff 18

# active taskbar elements
rounded = 7
border_width = 0
background_color = #FFFFFF 20
border_color = #FFFFFF 15

# active desktop
rounded = 7
border_width = 0
background_color = #FFFFFF 0
border_color = #FFFFFF 15

rounded = 7
border_width = 1
background_color = #000000 50
border_color = #FFFFFF 15

# tooltip
rounded = 0
border_width = 1
background_color = #000000 60
border_color = #FFFFFF 10

#———————————————
# PANEL
#———————————————
panel_monitor = all
panel_position = bottom center
panel_size = 85% 30
panel_margin = 7 0
panel_padding = 7 0
font_shadow = 0
panel_background_id = 0
panel_dock = 0
wm_menu = 1

#———————————————
# TASKBAR
#———————————————
taskbar_mode = multi_desktop
taskbar_padding = 2 3 2
taskbar_background_id = 1
taskbar_active_background_id = 4

#———————————————
# TASK
#———————————————
task_icon = 1
task_text = 0
task_width = 40
task_centered = 1
task_padding = 2 2
task_font = sans 7
task_font_color = #ffffff 70
task_active_font_color = #ffffff 85
task_background_id = 3
task_active_background_id = 2
urgent_nb_of_blink = 8

#———————————————
# SYSTRAYBAR
#———————————————
systray_padding = 4 3 4
systray_background_id = 5

#———————————————
# CLOCK
#———————————————
#time1_format = %H:%M
#time1_font = sans 8
#time2_format = %A %d %B
#time2_font = sans 6
#clock_font_color = #ffffff 76
#clock_padding = 1 0
#clock_background_id = 0
#clock_lclick_command = xclock
#clock_rclick_command = orage
#clock_tooltip = %A %d %B
#time1_timezone = :US/Hawaii
#time2_timezone = :Europe/Berlin
#clock_tooltip_timezone = :/usr/share/zoneinfo/Europe/Paris

#———————————————
# BATTERY
#———————————————
battery = 0
battery_low_status = 0
battery_low_cmd = (null)
bat1_font = (null)
bat2_font = (null)
battery_font_color = #000000 0
battery_padding = 2 2
battery_background_id = 0

#———————————————
# MOUSE ACTION ON TASK
#———————————————
mouse_middle = close
mouse_right = none
mouse_scroll_up = toggle
mouse_scroll_down = iconify

How to check for the gateway in Ubuntu

Use the route or ip command to get default routing table for Ubuntu Linux. Open the terminal and type the following command:

route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         169.144.12.1    0.0.0.0         UG    0      0        0 wlan0
169.144.12.0    0.0.0.0         255.255.252.0   U     2      0        0 wlan0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0

How to Install Opera in Ubuntu

Just follow these 3 step guide and you will be able to add Opera in Ubuntu.

1. Download and add the Opera Repository Key

To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, copy and paste the line below and press Enter to add Opera repository key.

wget -O- http://deb.opera.com/archive.key | sudo apt-key add -

2.Add Opera to the sources list

Next, copy and paste the line below to add Opera software repository in Ubuntu. I use the following command. and add the following line in the software repository.

sudo gedit /etc/apt/sources.list
deb http://deb.opera.com/opera/ stable non-free

3.Finally, run the commands below to update your system and install Opera

sudo apt-get update

sudo apt-get install opera

 

Enjoy!!

How to remove an uninstalled package’s dependencies

Sometimes you might want to remove the dependencies with the software itself.In this case you should use the command apt-get autoremove. It will remove packages that are installed as automatic dependencies, but are not depended anymore.

Apt-get has a flag –auto-remove that can be used to automatically remove the automatically installed packages when removing a manually installed package:

apt-get remove --auto-remove packagename

Certain other tools are also capable of doing this, for example aptitude will automatically suggest that you remove the packages that have been orphaned.

The automatically installed packages tracking is built in to apt so the tracking should work no matter which tool you use to install the packages.