play with vertical panel

git-svn-id: http://tint2.googlecode.com/svn/trunk@123 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr 2009-06-23 19:13:29 +00:00
parent 430f5476a3
commit c334860bb2
11 changed files with 423 additions and 241 deletions

View file

@ -1,3 +1,8 @@
2009-06-23
- play with vertical panel
check sample file tintrc05 and tintrc06
more change to come...
2009-06-21 2009-06-21
- play with some code for vertical panel - play with some code for vertical panel

View file

@ -201,45 +201,78 @@ void cleanup_panel()
void resize_panel(void *obj) void resize_panel(void *obj)
{ {
Panel *panel = (Panel*)obj; Panel *panel = (Panel*)obj;
int taskbar_width, modulo_width, taskbar_on_screen;
taskbar_width = panel->area.width - (2 * panel->area.paddingxlr) - (2 * panel->area.pix.border.width); if (panel_horizontal) {
if (panel->clock.area.on_screen && panel->clock.area.width) int taskbar_width, modulo_width = 0;
taskbar_width -= (panel->clock.area.width + panel->area.paddingx);
#ifdef ENABLE_BATTERY
if (panel->battery.area.on_screen && panel->battery.area.width)
taskbar_width -= (panel->battery.area.width + panel->area.paddingx);
#endif
// TODO : systray only on first panel. search better implementation !
if (systray.area.on_screen && systray.area.width && panel == &panel1[0])
taskbar_width -= (systray.area.width + panel->area.paddingx);
if (panel_mode == MULTI_DESKTOP) { taskbar_width = panel->area.width - (2 * panel->area.paddingxlr) - (2 * panel->area.pix.border.width);
taskbar_on_screen = panel->nb_desktop; if (panel->clock.area.on_screen && panel->clock.area.width)
int width = taskbar_width - ((taskbar_on_screen-1) * panel->area.paddingx); taskbar_width -= (panel->clock.area.width + panel->area.paddingx);
taskbar_width = width / taskbar_on_screen; #ifdef ENABLE_BATTERY
modulo_width = width % taskbar_on_screen; if (panel->battery.area.on_screen && panel->battery.area.width)
} taskbar_width -= (panel->battery.area.width + panel->area.paddingx);
else { #endif
taskbar_on_screen = 1; // TODO : systray only on first panel. search better implementation !
modulo_width = 0; if (systray.area.on_screen && systray.area.width && panel == &panel1[0])
taskbar_width -= (systray.area.width + panel->area.paddingx);
if (panel_mode == MULTI_DESKTOP) {
int width = taskbar_width - ((panel->nb_desktop-1) * panel->area.paddingx);
taskbar_width = width / panel->nb_desktop;
modulo_width = width % panel->nb_desktop;
}
// change posx and width for all taskbar
int i, posx;
posx = panel->area.pix.border.width + panel->area.paddingxlr;
for (i=0 ; i < panel->nb_desktop ; i++) {
panel->taskbar[i].area.posx = posx;
panel->taskbar[i].area.width = taskbar_width;
panel->taskbar[i].area.resize = 1;
if (modulo_width) {
panel->taskbar[i].area.width++;
modulo_width--;
}
//printf("taskbar %d : posx %d, width, %d, posy %d\n", i, posx, panel->taskbar[i].area.width, posx + panel->taskbar[i].area.width);
if (panel_mode == MULTI_DESKTOP)
posx += panel->taskbar[i].area.width + panel->area.paddingx;
}
} }
else {
int taskbar_height, modulo_height = 0;
int i, posy;
// change posx and width for all taskbar taskbar_height = panel->area.height - (2 * panel->area.paddingxlr) - (2 * panel->area.pix.border.width);
int i, posx; if (panel->clock.area.on_screen && panel->clock.area.height)
posx = panel->area.pix.border.width + panel->area.paddingxlr; taskbar_height -= (panel->clock.area.height + panel->area.paddingx);
for (i=0 ; i < panel->nb_desktop ; i++) { #ifdef ENABLE_BATTERY
panel->taskbar[i].area.posx = posx; if (panel->battery.area.on_screen && panel->battery.area.height)
panel->taskbar[i].area.width = taskbar_width; taskbar_height -= (panel->battery.area.height + panel->area.paddingx);
panel->taskbar[i].area.resize = 1; #endif
if (modulo_width) { // TODO : systray only on first panel. search better implementation !
panel->taskbar[i].area.width++; if (systray.area.on_screen && systray.area.height && panel == &panel1[0])
modulo_width--; taskbar_height -= (systray.area.height + panel->area.paddingx);
}
//printf("taskbar %d : posx %d, width, %d, posy %d\n", i, posx, panel->taskbar[i].area.width, posx + panel->taskbar[i].area.width); posy = panel->area.height - panel->area.pix.border.width - panel->area.paddingxlr - taskbar_height;
if (panel_mode == MULTI_DESKTOP) if (panel_mode == MULTI_DESKTOP) {
posx += panel->taskbar[i].area.width + panel->area.paddingx; int height = taskbar_height - ((panel->nb_desktop-1) * panel->area.paddingx);
} taskbar_height = height / panel->nb_desktop;
modulo_height = height % panel->nb_desktop;
}
// change posy and height for all taskbar
for (i=0 ; i < panel->nb_desktop ; i++) {
panel->taskbar[i].area.posy = posy;
panel->taskbar[i].area.height = taskbar_height;
panel->taskbar[i].area.resize = 1;
if (modulo_height) {
panel->taskbar[i].area.height++;
modulo_height--;
}
if (panel_mode == MULTI_DESKTOP)
posy += panel->taskbar[i].area.height + panel->area.paddingx;
}
}
} }

View file

@ -49,18 +49,31 @@ void init_taskbar()
// taskbar // taskbar
panel->g_taskbar._resize = resize_taskbar; panel->g_taskbar._resize = resize_taskbar;
panel->g_taskbar.posy = panel->area.pix.border.width + panel->area.paddingy;
panel->g_taskbar.height = panel->area.height - (2 * panel->g_taskbar.posy);
panel->g_taskbar.redraw = 1; panel->g_taskbar.redraw = 1;
panel->g_taskbar.on_screen = 1; panel->g_taskbar.on_screen = 1;
if (panel_horizontal) {
panel->g_taskbar.posy = panel->area.pix.border.width + panel->area.paddingy;
panel->g_taskbar.height = panel->area.height - (2 * panel->g_taskbar.posy);
}
else {
panel->g_taskbar.posx = panel->area.pix.border.width + panel->area.paddingy;
panel->g_taskbar.width = panel->area.width - (2 * panel->g_taskbar.posx);
}
// task // task
panel->g_task.area._draw_foreground = draw_task; panel->g_task.area._draw_foreground = draw_task;
panel->g_task.area.posy = panel->g_taskbar.posy + panel->g_taskbar.pix.border.width + panel->g_taskbar.paddingy;
panel->g_task.area.height = panel->area.height - (2 * panel->g_task.area.posy);
panel->g_task.area.use_active = 1; panel->g_task.area.use_active = 1;
panel->g_task.area.redraw = 1; panel->g_task.area.redraw = 1;
panel->g_task.area.on_screen = 1; panel->g_task.area.on_screen = 1;
if (panel_horizontal) {
panel->g_task.area.posy = panel->g_taskbar.posy + panel->g_taskbar.pix.border.width + panel->g_taskbar.paddingy;
panel->g_task.area.height = panel->area.height - (2 * panel->g_task.area.posy);
}
else {
panel->g_task.area.posx = panel->g_taskbar.posx + panel->g_taskbar.pix.border.width + panel->g_taskbar.paddingy;
panel->g_task.area.width = panel->area.width - (2 * panel->g_task.area.posx);
panel->g_task.area.height = panel->g_task.maximum_width;
}
if (panel->g_task.area.pix.border.rounded > panel->g_task.area.height/2) { if (panel->g_task.area.pix.border.rounded > panel->g_task.area.height/2) {
panel->g_task.area.pix.border.rounded = panel->g_task.area.height/2; panel->g_task.area.pix.border.rounded = panel->g_task.area.height/2;
@ -207,51 +220,96 @@ void resize_taskbar(void *obj)
{ {
Taskbar *taskbar = (Taskbar*)obj; Taskbar *taskbar = (Taskbar*)obj;
Panel *panel = (Panel*)taskbar->area.panel; Panel *panel = (Panel*)taskbar->area.panel;
int task_count, pixel_width, modulo_width=0;
int x, taskbar_width;
Task *tsk; Task *tsk;
GSList *l; GSList *l;
int task_count;
//printf("resize_taskbar : posx et width des taches\n"); //printf("resize_taskbar : posx et width des taches\n");
taskbar->area.redraw = 1; taskbar->area.redraw = 1;
// new task width for 'desktop' if (panel_horizontal) {
task_count = g_slist_length(taskbar->area.list); int pixel_width, modulo_width=0;
if (!task_count) pixel_width = panel->g_task.maximum_width; int x, taskbar_width;
else {
taskbar_width = taskbar->area.width - (2 * panel->g_taskbar.pix.border.width) - (2 * panel->g_taskbar.paddingxlr);
if (task_count>1) taskbar_width -= ((task_count-1) * panel->g_taskbar.paddingx);
pixel_width = taskbar_width / task_count; // new task width for 'desktop'
if (pixel_width > panel->g_task.maximum_width) task_count = g_slist_length(taskbar->area.list);
pixel_width = panel->g_task.maximum_width; if (!task_count) pixel_width = panel->g_task.maximum_width;
else else {
modulo_width = taskbar_width % task_count; taskbar_width = taskbar->area.width - (2 * panel->g_taskbar.pix.border.width) - (2 * panel->g_taskbar.paddingxlr);
} if (task_count>1) taskbar_width -= ((task_count-1) * panel->g_taskbar.paddingx);
if ((taskbar->task_width == pixel_width) && (taskbar->task_modulo == modulo_width)) { pixel_width = taskbar_width / task_count;
} if (pixel_width > panel->g_task.maximum_width)
else { pixel_width = panel->g_task.maximum_width;
taskbar->task_width = pixel_width; else
taskbar->task_modulo = modulo_width; modulo_width = taskbar_width % task_count;
taskbar->text_width = pixel_width - panel->g_task.text_posx - panel->g_task.area.pix.border.width - panel->g_task.area.paddingx; }
}
// change pos_x and width for all tasks if ((taskbar->task_width == pixel_width) && (taskbar->task_modulo == modulo_width)) {
x = taskbar->area.posx + taskbar->area.pix.border.width + taskbar->area.paddingxlr; }
for (l = taskbar->area.list; l ; l = l->next) { else {
tsk = l->data; taskbar->task_width = pixel_width;
tsk->area.posx = x; taskbar->task_modulo = modulo_width;
tsk->area.width = pixel_width; taskbar->text_width = pixel_width - panel->g_task.text_posx - panel->g_task.area.pix.border.width - panel->g_task.area.paddingx;
tsk->area.redraw = 1; }
if (modulo_width) {
tsk->area.width++;
modulo_width--;
}
x += tsk->area.width + panel->g_taskbar.paddingx; // change pos_x and width for all tasks
} x = taskbar->area.posx + taskbar->area.pix.border.width + taskbar->area.paddingxlr;
for (l = taskbar->area.list; l ; l = l->next) {
tsk = l->data;
tsk->area.posx = x;
tsk->area.width = pixel_width;
tsk->area.redraw = 1;
if (modulo_width) {
tsk->area.width++;
modulo_width--;
}
x += tsk->area.width + panel->g_taskbar.paddingx;
}
}
else {
int pixel_height, modulo_height=0;
int y, taskbar_height;
// new task width for 'desktop'
task_count = g_slist_length(taskbar->area.list);
if (!task_count) pixel_height = panel->g_task.maximum_width;
else {
taskbar_height = taskbar->area.height - (2 * panel->g_taskbar.pix.border.width) - (2 * panel->g_taskbar.paddingxlr);
if (task_count>1) taskbar_height -= ((task_count-1) * panel->g_taskbar.paddingx);
pixel_height = taskbar_height / task_count;
if (pixel_height > panel->g_task.maximum_width)
pixel_height = panel->g_task.maximum_width;
else
modulo_height = taskbar_height % task_count;
}
if ((taskbar->task_width == pixel_height) && (taskbar->task_modulo == modulo_height)) {
}
else {
taskbar->task_width = pixel_height;
taskbar->task_modulo = modulo_height;
taskbar->text_width = taskbar->area.width - (2 * taskbar->area.paddingy) - (2 * taskbar->area.pix.border.width);
}
// change pos_y and height for all tasks
y = taskbar->area.posy + taskbar->area.pix.border.width + taskbar->area.paddingxlr;
for (l = taskbar->area.list; l ; l = l->next) {
tsk = l->data;
tsk->area.posy = y;
tsk->area.height = pixel_height;
tsk->area.redraw = 1;
if (modulo_height) {
tsk->area.height++;
modulo_height--;
}
y += tsk->area.height + panel->g_taskbar.paddingx;
}
}
} }

View file

@ -140,7 +140,7 @@ void event_button_press (XEvent *e)
if (!panel) return; if (!panel) return;
if (wm_menu) { if (wm_menu) {
if ((e->xbutton.x < panel->area.paddingxlr) || (e->xbutton.x > panel->area.width-panel->area.paddingxlr) || (e->xbutton.y < panel->area.paddingy) || (e->xbutton.y > panel->area.paddingy+panel->g_taskbar.height)) { if ((panel_horizontal && (e->xbutton.x < panel->area.paddingxlr || e->xbutton.x > panel->area.width-panel->area.paddingxlr || e->xbutton.y < panel->area.paddingy || e->xbutton.y > panel->area.paddingy+panel->g_taskbar.height)) || (!panel_horizontal && (e->xbutton.y < panel->area.paddingxlr || e->xbutton.y > panel->area.height-panel->area.paddingxlr || e->xbutton.x < panel->area.paddingy || e->xbutton.x > panel->area.paddingy+panel->g_taskbar.width))) {
// forward the click to the desktop window (thanks conky) // forward the click to the desktop window (thanks conky)
XUngrabPointer(server.dsp, e->xbutton.time); XUngrabPointer(server.dsp, e->xbutton.time);
e->xbutton.window = server.root_win; e->xbutton.window = server.root_win;
@ -165,25 +165,44 @@ void event_button_press (XEvent *e)
GSList *l0; GSList *l0;
Taskbar *tskbar; Taskbar *tskbar;
int x = e->xbutton.x; if (panel_horizontal) {
for (l0 = panel->area.list; l0 ; l0 = l0->next) { int x = e->xbutton.x;
tskbar = l0->data; for (l0 = panel->area.list; l0 ; l0 = l0->next) {
if (!tskbar->area.on_screen) continue; tskbar = l0->data;
if (x >= tskbar->area.posx && x <= (tskbar->area.posx + tskbar->area.width)) if (!tskbar->area.on_screen) continue;
break; if (x >= tskbar->area.posx && x <= (tskbar->area.posx + tskbar->area.width))
} break;
}
if (l0) { if (l0) {
Task *tsk; Task *tsk;
for (l0 = tskbar->area.list; l0 ; l0 = l0->next) { for (l0 = tskbar->area.list; l0 ; l0 = l0->next) {
tsk = l0->data; tsk = l0->data;
if (x >= tsk->area.posx && x <= (tsk->area.posx + tsk->area.width)) { if (x >= tsk->area.posx && x <= (tsk->area.posx + tsk->area.width)) {
task_drag = tsk; task_drag = tsk;
break; break;
} }
} }
} }
}
else {
int y = e->xbutton.y;
for (l0 = panel->area.list; l0 ; l0 = l0->next) {
tskbar = l0->data;
if (!tskbar->area.on_screen) continue;
if (y >= tskbar->area.posy && y <= (tskbar->area.posy + tskbar->area.height))
break;
}
if (l0) {
Task *tsk;
for (l0 = tskbar->area.list; l0 ; l0 = l0->next) {
tsk = l0->data;
if (y >= tsk->area.posy && y <= (tsk->area.posy + tsk->area.height)) {
task_drag = tsk;
break;
}
}
}
}
XLowerWindow (server.dsp, panel->main_win); XLowerWindow (server.dsp, panel->main_win);
} }
@ -194,7 +213,7 @@ void event_button_release (XEvent *e)
if (!panel) return; if (!panel) return;
if (wm_menu) { if (wm_menu) {
if ((e->xbutton.x < panel->area.paddingxlr) || (e->xbutton.x > panel->area.width-panel->area.paddingxlr) || (e->xbutton.y < panel->area.paddingy) || (e->xbutton.y > panel->area.paddingy+panel->g_taskbar.height)) { if ((panel_horizontal && (e->xbutton.x < panel->area.paddingxlr || e->xbutton.x > panel->area.width-panel->area.paddingxlr || e->xbutton.y < panel->area.paddingy || e->xbutton.y > panel->area.paddingy+panel->g_taskbar.height)) || (!panel_horizontal && (e->xbutton.y < panel->area.paddingxlr || e->xbutton.y > panel->area.height-panel->area.paddingxlr || e->xbutton.x < panel->area.paddingy || e->xbutton.x > panel->area.paddingy+panel->g_taskbar.width))) {
// forward the click to the desktop window (thanks conky) // forward the click to the desktop window (thanks conky)
e->xbutton.window = server.root_win; e->xbutton.window = server.root_win;
XSendEvent(server.dsp, e->xbutton.window, False, ButtonReleaseMask, e); XSendEvent(server.dsp, e->xbutton.window, False, ButtonReleaseMask, e);
@ -204,7 +223,7 @@ void event_button_release (XEvent *e)
int action = TOGGLE_ICONIFY; int action = TOGGLE_ICONIFY;
int x = e->xbutton.x; int x = e->xbutton.x;
//int y = e->xbutton.y; // unused int y = e->xbutton.y;
switch (e->xbutton.button) { switch (e->xbutton.button) {
case 2: case 2:
action = mouse_middle; action = mouse_middle;
@ -224,14 +243,28 @@ void event_button_release (XEvent *e)
Taskbar *tskbar; Taskbar *tskbar;
GSList *l0; GSList *l0;
Clock clk = panel->clock; Clock clk = panel->clock;
if (clk.area.on_screen && x >= clk.area.posx && x <= (clk.area.posx + clk.area.width)) if (panel_horizontal) {
clock_action(e->xbutton.button); if (clk.area.on_screen && x >= clk.area.posx && x <= (clk.area.posx + clk.area.width))
clock_action(e->xbutton.button);
else {
for (l0 = panel->area.list; l0 ; l0 = l0->next) {
tskbar = l0->data;
if (!tskbar->area.on_screen) continue;
if (x >= tskbar->area.posx && x <= (tskbar->area.posx + tskbar->area.width))
goto suite;
}
}
}
else { else {
for (l0 = panel->area.list; l0 ; l0 = l0->next) { if (clk.area.on_screen && y >= clk.area.posy && y <= (clk.area.posy + clk.area.height))
tskbar = l0->data; clock_action(e->xbutton.button);
if (!tskbar->area.on_screen) continue; else {
if (x >= tskbar->area.posx && x <= (tskbar->area.posx + tskbar->area.width)) for (l0 = panel->area.list; l0 ; l0 = l0->next) {
goto suite; tskbar = l0->data;
if (!tskbar->area.on_screen) continue;
if (y >= tskbar->area.posy && y <= (tskbar->area.posy + tskbar->area.height))
goto suite;
}
} }
} }
@ -265,10 +298,18 @@ suite:
GSList *l; GSList *l;
for (l = tskbar->area.list ; l ; l = l->next) { for (l = tskbar->area.list ; l ; l = l->next) {
tsk = l->data; tsk = l->data;
if (x >= tsk->area.posx && x <= (tsk->area.posx + tsk->area.width)) { if (panel_horizontal) {
window_action (tsk, action); if (x >= tsk->area.posx && x <= (tsk->area.posx + tsk->area.width)) {
break; window_action (tsk, action);
} break;
}
}
else {
if (y >= tsk->area.posy && y <= (tsk->area.posy + tsk->area.height)) {
window_action (tsk, action);
break;
}
}
} }
// to keep window below // to keep window below
@ -545,11 +586,11 @@ int main (int argc, char *argv[])
Panel *panel; Panel *panel;
GSList *it; GSList *it;
c = getopt (argc, argv, "c:");
init (); init ();
load_config: load_config:
i = 0; i = 0;
c = getopt (argc, argv, "c:");
init_config(); init_config();
if (c != -1) { if (c != -1) {
i = config_read_file (optarg); i = config_read_file (optarg);
@ -639,6 +680,7 @@ load_config:
switch (signal_pending) { switch (signal_pending) {
case SIGUSR1: case SIGUSR1:
signal_pending = 0;
goto load_config; goto load_config;
case SIGINT: case SIGINT:
case SIGTERM: case SIGTERM:

10
tint2rc
View file

@ -25,16 +25,18 @@ border_color = #ffffff 70
#--------------------------------------------- #---------------------------------------------
panel_monitor = all panel_monitor = all
panel_position = bottom center panel_position = bottom center
panel_size = 92% 30 panel_size = 94% 30
panel_margin = 0 0 panel_margin = 0 0
panel_padding = 7 0 panel_padding = 7 0
font_shadow = 0 font_shadow = 0
panel_background_id = 1 panel_background_id = 1
wm_menu = 0
#--------------------------------------------- #---------------------------------------------
# TASKBAR # TASKBAR
#--------------------------------------------- #---------------------------------------------
taskbar_mode = single_monitor #taskbar_mode = multi_desktop
taskbar_mode = single_desktop
taskbar_padding = 2 3 2 taskbar_padding = 2 3 2
taskbar_background_id = 0 taskbar_background_id = 0
@ -68,12 +70,14 @@ time2_font = sans 6
clock_font_color = #ffffff 76 clock_font_color = #ffffff 76
clock_padding = 1 0 clock_padding = 1 0
clock_background_id = 0 clock_background_id = 0
#clock_lclick_command = xclock
clock_rclick_command = orage
#--------------------------------------------- #---------------------------------------------
# BATTERY # BATTERY
#--------------------------------------------- #---------------------------------------------
battery = 0 battery = 0
battery_low_status = 7 battery_low_status = 10
battery_low_cmd = notify-send "battery low" battery_low_cmd = notify-send "battery low"
bat1_font = sans 8 bat1_font = sans 8
bat2_font = sans 6 bat2_font = sans 6

View file

@ -5,84 +5,87 @@
#--------------------------------------------- #---------------------------------------------
# BACKGROUND AND BORDER # BACKGROUND AND BORDER
#--------------------------------------------- #---------------------------------------------
rounded = 1 rounded = 7
border_width = 0 border_width = 2
background_color = #282828 60 background_color = #000000 60
border_color = #000000 0 border_color = #ffffff 18
rounded = 1 rounded = 5
border_width = 1
background_color = #cccccc 0
border_color = #cccccc 55
rounded = 1
border_width = 0 border_width = 0
background_color = #cccccc 20 background_color = #ffffff 40
border_color = #cccccc 40 border_color = #ffffff 50
rounded = 5
border_width = 0
background_color = #ffffff 18
border_color = #ffffff 70
#--------------------------------------------- #---------------------------------------------
# PANEL # PANEL
#--------------------------------------------- #---------------------------------------------
panel_monitor = all panel_monitor = all
panel_position = bottom center panel_position = bottom center
panel_size = 95% 30 panel_size = 94% 30
panel_margin = 0 0 panel_margin = 0 0
panel_padding = 7 3 7 panel_padding = 7 0
font_shadow = 0 font_shadow = 0
panel_background_id = 1 panel_background_id = 1
wm_menu = 0
#--------------------------------------------- #---------------------------------------------
# TASKBAR # TASKBAR
#--------------------------------------------- #---------------------------------------------
#taskbar_mode = single_desktop #taskbar_mode = multi_desktop
#taskbar_mode = single_monitor taskbar_mode = single_desktop
taskbar_mode = multi_desktop taskbar_padding = 2 3 2
taskbar_padding = 0 0 0 taskbar_background_id = 0
taskbar_background_id = 2
#--------------------------------------------- #---------------------------------------------
# TASKS # TASKS
#--------------------------------------------- #---------------------------------------------
task_icon = 1 task_icon = 1
task_text = 0 task_text = 1
task_width = 34 task_width = 140
task_centered = 1 task_centered = 1
task_padding = 2 3 task_padding = 6 3
task_font = sans 8 task_font = sans 7
task_font_color = #ffffff 60 task_font_color = #ffffff 70
task_active_font_color = #ffffff 100 task_active_font_color = #ffffff 85
task_background_id = 0 task_background_id = 3
task_active_background_id = 3 task_active_background_id = 2
#--------------------------------------------- #---------------------------------------------
# SYSTRAYBAR # SYSTRAYBAR
#--------------------------------------------- #---------------------------------------------
systray_padding = 0 4 3 systray_padding = 0 4 5
systray_background_id = 0 systray_background_id = 0
#--------------------------------------------- #---------------------------------------------
# CLOCK # CLOCK
#--------------------------------------------- #---------------------------------------------
time1_format = %H:%M time1_format = %H:%M
time1_font = sans 7 time1_font = sans 8
time2_format = %A %d %B time2_format = %A %d %B
time2_font = sans 7 time2_font = sans 6
clock_font_color = #ffffff 100 clock_font_color = #ffffff 76
clock_padding = 1 0 clock_padding = 1 0
clock_background_id = 0 clock_background_id = 0
#clock_lclick_command = xclock
clock_rclick_command = orage
#--------------------------------------------- #---------------------------------------------
# BATTERY # BATTERY
#--------------------------------------------- #---------------------------------------------
battery = 1 battery = 0
battery_low_status = 7 battery_low_status = 10
battery_low_cmd = notify-send "battery low" battery_low_cmd = notify-send "battery low"
bat1_font = sans 7 bat1_font = sans 8
bat2_font = sans 7 bat2_font = sans 6
battery_font_color = #ffffff 100 battery_font_color = #ffffff 76
battery_padding = 1 0 battery_padding = 1 0
battery_background_id = 0 battery_background_id = 0
#--------------------------------------------- #---------------------------------------------
# MOUSE ACTION ON TASK # MOUSE ACTION ON TASK
#--------------------------------------------- #---------------------------------------------

View file

@ -5,71 +5,79 @@
#--------------------------------------------- #---------------------------------------------
# BACKGROUND AND BORDER # BACKGROUND AND BORDER
#--------------------------------------------- #---------------------------------------------
rounded = 10 rounded = 1
border_width = 0 border_width = 0
background_color = #ffffff 40 background_color = #282828 60
border_color = #ffffff 60 border_color = #000000 0
rounded = 10 rounded = 1
border_width = 1
background_color = #cccccc 0
border_color = #cccccc 55
rounded = 1
border_width = 0 border_width = 0
background_color = #ffffff 30 background_color = #cccccc 20
border_color = #ffffff 15 border_color = #cccccc 40
#--------------------------------------------- #---------------------------------------------
# PANEL # PANEL
#--------------------------------------------- #---------------------------------------------
panel_monitor = all panel_monitor = all
panel_position = bottom center panel_position = bottom center
panel_size = 97% 26 panel_size = 95% 30
panel_margin = 0 0 panel_margin = 0 0
panel_padding = 0 0 10 panel_padding = 7 3 7
font_shadow = 0 font_shadow = 0
panel_background_id = 0 panel_background_id = 1
wm_menu = 0
#--------------------------------------------- #---------------------------------------------
# TASKBAR # TASKBAR
#--------------------------------------------- #---------------------------------------------
taskbar_mode = single_desktop taskbar_mode = multi_desktop
#taskbar_mode = single_desktop
taskbar_padding = 0 0 0 taskbar_padding = 0 0 0
taskbar_background_id = 1 taskbar_background_id = 2
#--------------------------------------------- #---------------------------------------------
# TASKS # TASKS
#--------------------------------------------- #---------------------------------------------
task_icon = 1 task_icon = 1
task_text = 1 task_text = 0
task_width = 160 task_width = 34
task_centered = 1 task_centered = 1
task_padding = 5 4 task_padding = 2 3
task_font = Dejavu sans 8 task_font = sans 8
task_font_color = #000000 65 task_font_color = #ffffff 60
task_active_font_color = #000000 100 task_active_font_color = #ffffff 100
task_background_id = 0 task_background_id = 0
task_active_background_id = 2 task_active_background_id = 3
#--------------------------------------------- #---------------------------------------------
# SYSTRAYBAR # SYSTRAYBAR
#--------------------------------------------- #---------------------------------------------
systray_padding = 8 3 4 systray_padding = 0 4 3
systray_background_id = 1 systray_background_id = 0
#--------------------------------------------- #---------------------------------------------
# CLOCK # CLOCK
#--------------------------------------------- #---------------------------------------------
#time1_format = %A %d %H:%M time1_format = %H:%M
time1_font = Dejavu sans 10 time1_font = sans 7
#time2_format = %A %d %B time2_format = %A %d %B
time2_font = sans 7 time2_font = sans 7
clock_font_color = #000000 80 clock_font_color = #ffffff 100
clock_padding = 8 0 clock_padding = 1 0
clock_background_id = 1 clock_background_id = 0
#clock_lclick_command = xclock
clock_rclick_command = orage
#--------------------------------------------- #---------------------------------------------
# BATTERY # BATTERY
#--------------------------------------------- #---------------------------------------------
battery = 0 battery = 1
battery_low_status = 7 battery_low_status = 10
battery_low_cmd = notify-send "battery low" battery_low_cmd = notify-send "battery low"
bat1_font = sans 7 bat1_font = sans 7
bat2_font = sans 7 bat2_font = sans 7

View file

@ -25,11 +25,13 @@ panel_margin = 0 0
panel_padding = 0 2 5 panel_padding = 0 2 5
font_shadow = 0 font_shadow = 0
panel_background_id = 0 panel_background_id = 0
wm_menu = 0
#--------------------------------------------- #---------------------------------------------
# TASKBAR # TASKBAR
#--------------------------------------------- #---------------------------------------------
taskbar_mode = single_monitor #taskbar_mode = multi_desktop
taskbar_mode = single_desktop
taskbar_padding = 0 0 5 taskbar_padding = 0 0 5
taskbar_background_id = 0 taskbar_background_id = 0
@ -63,12 +65,14 @@ time2_font = sans bold 7.5
clock_font_color = #ffffff 60 clock_font_color = #ffffff 60
clock_padding = 5 0 clock_padding = 5 0
clock_background_id = 1 clock_background_id = 1
#clock_lclick_command = xclock
clock_rclick_command = orage
#--------------------------------------------- #---------------------------------------------
# BATTERY # BATTERY
#--------------------------------------------- #---------------------------------------------
battery = 0 battery = 0
battery_low_status = 7 battery_low_status = 10
battery_low_cmd = notify-send "battery low" battery_low_cmd = notify-send "battery low"
bat1_font = sans 7 bat1_font = sans 7
bat2_font = sans 7 bat2_font = sans 7

View file

@ -25,10 +25,12 @@ panel_margin = 0 0
panel_padding = 0 0 0 panel_padding = 0 0 0
font_shadow = 0 font_shadow = 0
panel_background_id = 1 panel_background_id = 1
wm_menu = 0
#--------------------------------------------- #---------------------------------------------
# TASKBAR # TASKBAR
#--------------------------------------------- #---------------------------------------------
#taskbar_mode = multi_desktop
taskbar_mode = single_desktop taskbar_mode = single_desktop
taskbar_padding = 0 0 0 taskbar_padding = 0 0 0
taskbar_background_id = 0 taskbar_background_id = 0
@ -63,12 +65,14 @@ time2_font = sans 7
clock_font_color = #ffffff 90 clock_font_color = #ffffff 90
clock_padding = 4 0 clock_padding = 4 0
clock_background_id = 0 clock_background_id = 0
#clock_lclick_command = xclock
clock_rclick_command = orage
#--------------------------------------------- #---------------------------------------------
# BATTERY # BATTERY
#--------------------------------------------- #---------------------------------------------
battery = 1 battery = 0
battery_low_status = 7 battery_low_status = 10
battery_low_cmd = notify-send "battery low" battery_low_cmd = notify-send "battery low"
bat1_font = sans 8 bat1_font = sans 8
bat2_font = sans 6 bat2_font = sans 6

View file

@ -5,81 +5,85 @@
#--------------------------------------------- #---------------------------------------------
# BACKGROUND AND BORDER # BACKGROUND AND BORDER
#--------------------------------------------- #---------------------------------------------
rounded = 10
border_width = 1
background_color = #000000 45
border_color = #ffffff 0
rounded = 7
border_width = 0
background_color = #ffffff 20
border_color = #ffffff 15
rounded = 0 rounded = 0
border_width = 0 border_width = 0
background_color = #000000 35 background_color = #000000 60
border_color = #ffffff 0 border_color = #d1d1d1 34
rounded = 3
border_width = 1
background_color = #000000 40
border_color = #d1d1d1 34
rounded = 2
border_width = 0
background_color = #d1d1d1 24
border_color = #d1d1d1 40
#--------------------------------------------- #---------------------------------------------
# PANEL # PANEL
#--------------------------------------------- #---------------------------------------------
panel_monitor = all panel_monitor = all
panel_position = bottom center panel_position = center left vertical
panel_size = 95% 30 panel_size = 90% 85
panel_margin = 0 0 panel_margin = 0 0
panel_padding = 9 2 7 panel_padding = 10 3 10
font_shadow = 0 font_shadow = 0
panel_background_id = 0 panel_background_id = 0
wm_menu = 1
#--------------------------------------------- #---------------------------------------------
# TASKBAR # TASKBAR
#--------------------------------------------- #---------------------------------------------
taskbar_mode = multi_desktop taskbar_mode = multi_desktop
taskbar_padding = 3 3 0 #taskbar_mode = single_desktop
taskbar_background_id = 1 taskbar_padding = 0 0 0
taskbar_background_id = 2
#--------------------------------------------- #---------------------------------------------
# TASKS # TASKS
#--------------------------------------------- #---------------------------------------------
task_icon = 1 task_icon = 1
task_text = 1 task_text = 1
task_width = 160 task_width = 26
task_centered = 1 task_centered = 1
task_padding = 4 2 task_padding = 4 3
task_font = sans bold 8 task_font = sans bold 7.5
task_font_color = #ffffff 60 task_font_color = #ffffff 60
task_active_font_color = #ffffff 85 task_active_font_color = #ffffff 90
task_background_id = 0 task_background_id = 0
task_active_background_id = 2 task_active_background_id = 3
#--------------------------------------------- #---------------------------------------------
# SYSTRAYBAR # SYSTRAYBAR
#--------------------------------------------- #---------------------------------------------
systray_padding = 9 3 5 #systray_padding = 6 3 5
systray_background_id = 1 systray_background_id = 2
#--------------------------------------------- #---------------------------------------------
# CLOCK # CLOCK
#--------------------------------------------- #---------------------------------------------
#time1_format = %H:%M time1_format = %H:%M
time1_font = sans bold 8 time1_font = sans bold 8
#time2_format = %A %d %B #time2_format = %A %d %B
time2_format = %A %d
time2_font = sans 7 time2_font = sans 7
clock_font_color = #ffffff 65 clock_font_color = #ffffff 60
clock_padding = 6 0 clock_padding = 4 2
clock_background_id = 1 clock_background_id = 2
clock_lclick_command = xclock
clock_rclick_command = orage
#--------------------------------------------- #---------------------------------------------
# BATTERY # BATTERY
#--------------------------------------------- #---------------------------------------------
battery = 0 battery = 0
battery_low_status = 7 battery_low_status = 10
battery_low_cmd = notify-send "battery low" battery_low_cmd = notify-send "battery low"
bat1_font = sans 8 bat1_font = sans bold 7
bat2_font = sans 6 bat2_font = sans 7
battery_font_color = #ffffff 100 battery_font_color = #ffffff 60
battery_padding = 1 0 battery_padding = 0 0
battery_background_id = 0 battery_background_id = 0
#--------------------------------------------- #---------------------------------------------
@ -90,3 +94,4 @@ mouse_right = close
mouse_scroll_up = toggle mouse_scroll_up = toggle
mouse_scroll_down = iconify mouse_scroll_down = iconify

View file

@ -5,76 +5,92 @@
#--------------------------------------------- #---------------------------------------------
# BACKGROUND AND BORDER # BACKGROUND AND BORDER
#--------------------------------------------- #---------------------------------------------
rounded = 4 rounded = 1
border_width = 1 border_width = 0
background_color = #000000 40 background_color = #cae2dd 40
border_color = #d1d1d1 34 border_color = #d1d1d1 34
rounded = 3 rounded = 1
border_width = 1
background_color = #000000 0
border_color = #ffffff 60
rounded = 1
border_width = 0 border_width = 0
background_color = #000000 40 background_color = #000000 15
border_color = #d1d1d1 40 border_color = #ffffff 0
rounded = 1
border_width = 0
background_color = #cae2dd 50
border_color = #d1d1d1 34
#--------------------------------------------- #---------------------------------------------
# PANEL # PANEL
#--------------------------------------------- #---------------------------------------------
panel_monitor = all panel_monitor = all
panel_position = bottom center panel_position = center left vertical
panel_size = 97% 30 #panel_position = bottom center
panel_size = 90% 50
panel_margin = 0 0 panel_margin = 0 0
panel_padding = 0 2 7 panel_padding = 7 3 5
font_shadow = 0 font_shadow = 0
panel_background_id = 0 panel_background_id = 1
wm_menu = 1
#--------------------------------------------- #---------------------------------------------
# TASKBAR # TASKBAR
#--------------------------------------------- #---------------------------------------------
taskbar_mode = multi_desktop taskbar_mode = multi_desktop
#taskbar_mode = single_desktop
taskbar_padding = 0 0 0 taskbar_padding = 0 0 0
taskbar_background_id = 1 taskbar_background_id = 2
#--------------------------------------------- #---------------------------------------------
# TASKS # TASKS
#--------------------------------------------- #---------------------------------------------
task_icon = 0 task_icon = 1
task_text = 1 task_text = 0
task_width = 160 task_width = 30
task_centered = 1 task_centered = 1
task_padding = 4 3 task_padding = 4 6
task_font = sans bold 7.5 task_font = sans bold 7.5
task_font_color = #ffffff 60 task_font_color = #ffffff 70
task_active_font_color = #ffffff 90 task_active_font_color = #ffffff 100
task_background_id = 0 task_background_id = 0
task_active_background_id = 2 task_active_background_id = 3
#--------------------------------------------- #---------------------------------------------
# SYSTRAYBAR # SYSTRAYBAR
#--------------------------------------------- #---------------------------------------------
systray_padding = 6 3 5 #systray_padding = 6 3 5
systray_background_id = 1 systray_background_id = 2
#--------------------------------------------- #---------------------------------------------
# CLOCK # CLOCK
#--------------------------------------------- #---------------------------------------------
time1_format = %H:%M time1_format = %H:%M
time1_font = sans bold 7 time1_font = sans 8
time2_format = %A %d %B time2_format = %d %b
time2_font = sans 7 time2_font = sans 7
clock_font_color = #ffffff 60 clock_font_color = #000000 90
clock_padding = 2 0 clock_padding = 4 2
clock_background_id = 1 clock_background_id = 4
clock_lclick_command = xclock
clock_rclick_command = orage
#--------------------------------------------- #---------------------------------------------
# BATTERY # BATTERY
#--------------------------------------------- #---------------------------------------------
battery = 1 battery = 0
battery_low_status = 7 battery_low_status = 10
battery_low_cmd = notify-send "battery low" battery_low_cmd = notify-send "battery low"
bat1_font = sans bold 7 bat1_font = sans bold 7
bat2_font = sans 7 bat2_font = sans 7
battery_font_color = #ffffff 60 battery_font_color = #ffffff 60
battery_padding = 1 0 battery_padding = 0 0
battery_background_id = 1 battery_background_id = 0
#--------------------------------------------- #---------------------------------------------
# MOUSE ACTION ON TASK # MOUSE ACTION ON TASK