So what in partial strut? if you have experience with tint2 you will know that everytime you run tint2, tint2 panel always make space to it self. it’s good overall. But here i need tint2 to be clock shower not a full panel it self, if you just set the parameter “panel_items=C” mean clock only, and run tint2… tint2 always making space to rest of the panel.
So i need to edit the source code of tint2… Horray,,, life on opensource….
1. You must have “svn” install it, depends on your distro, if ubuntu it will be #apt-get install svn
2. and type this and enter, svn checkout http://tint2.googlecode.com/svn/trunk/ tint2-read-only
3. Wait for some secs
4. And you will have tint2-read-only folder on your home directory, access it to src.
5. See, there is many source of tint2, source we need to edit is panel.c
6. Open panel.c
7. see this part:
void default_panel()
{
panel1 = 0;
nb_panel = 0;
default_icon = NULL;
task_dragged = 0;
panel_horizontal = 1;
panel_position = CENTER;
panel_items_order = 0;
panel_autohide = 0;
panel_autohide_show_timeout = 0;
panel_autohide_hide_timeout = 0;
panel_autohide_height = 5; // for vertical panels this is of course the width
panel_strut_policy = STRUT_NONE;
panel_dock = 0; // default not in the dock
panel_layer = BOTTOM_LAYER; // default is bottom layer
wm_menu = 0;
max_tick_urgent = 14;
backgrounds = g_array_new(0, 0, sizeof(Background));
memset(&panel_config, 0, sizeof(Panel));
// append full transparency background
Background transparent_bg;
memset(&transparent_bg, 0, sizeof(Background));
g_array_append_val(backgrounds, transparent_bg);
}
8. To make tint2 don’t make space to rest of panel and disable the dock functionality of tint2.
9. Save, then recompile tint2.
10. Install and test to run, happy viola,,, tint2 won’t make space…
11. See my screenshoot at top left corner