cleanup config file
git-svn-id: http://tint2.googlecode.com/svn/trunk@70 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
09b95187d3
commit
3be419b59b
9 changed files with 49 additions and 13 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2009-03-14
|
||||||
|
- add systray option when convert tint-0.6 config file
|
||||||
|
but you need to stop other systemtray program
|
||||||
|
|
||||||
2009-03-07
|
2009-03-07
|
||||||
- fixed segfault when time1_format empty
|
- fixed segfault when time1_format empty
|
||||||
- fixed systray : when clock change size
|
- fixed systray : when clock change size
|
||||||
|
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
CFLAGS= -O2
|
CFLAGS= -O2
|
||||||
CC = gcc
|
CC = gcc
|
||||||
FLAGS=-Wall -g `pkg-config --cflags --libs cairo pangocairo x11 xinerama imlib2 glib-2.0`
|
FLAGS=-Wall -g `pkg-config --cflags --libs cairo pangocairo x11 xinerama xrandr imlib2 glib-2.0`
|
||||||
PROGNAME=tint2
|
PROGNAME=tint2
|
||||||
FILES=tint.c server.c panel.c config.c taskbar/task.c taskbar/taskbar.c clock/clock.c systray/systraybar.c util/window.c util/area.c
|
FILES=tint.c server.c panel.c config.c taskbar/task.c taskbar/taskbar.c clock/clock.c systray/systraybar.c util/window.c util/area.c
|
||||||
|
|
||||||
|
|
|
@ -758,6 +758,12 @@ void save_config ()
|
||||||
fputs("task_background_id = 2\n", fp);
|
fputs("task_background_id = 2\n", fp);
|
||||||
fputs("task_active_background_id = 3\n", fp);
|
fputs("task_active_background_id = 3\n", fp);
|
||||||
|
|
||||||
|
fputs("\n#---------------------------------------------\n", fp);
|
||||||
|
fputs("# SYSTRAYBAR\n", fp);
|
||||||
|
fputs("#---------------------------------------------\n", fp);
|
||||||
|
fputs("systray_padding = 4 3 4\n", fp);
|
||||||
|
fputs("systray_background_id = 0\n", fp);
|
||||||
|
|
||||||
fputs("\n#---------------------------------------------\n", fp);
|
fputs("\n#---------------------------------------------\n", fp);
|
||||||
fputs("# CLOCK\n", fp);
|
fputs("# CLOCK\n", fp);
|
||||||
fputs("#---------------------------------------------\n", fp);
|
fputs("#---------------------------------------------\n", fp);
|
||||||
|
|
|
@ -37,7 +37,7 @@ GSList *icons;
|
||||||
#define SYSTEM_TRAY_CANCEL_MESSAGE 2
|
#define SYSTEM_TRAY_CANCEL_MESSAGE 2
|
||||||
|
|
||||||
// selection window
|
// selection window
|
||||||
Window net_sel_win = None;
|
Window net_sel_win = None, hint_win = None;
|
||||||
|
|
||||||
// freedesktop specification doesn't allow multi systray
|
// freedesktop specification doesn't allow multi systray
|
||||||
Systraybar systray;
|
Systraybar systray;
|
||||||
|
@ -158,6 +158,29 @@ void resize_systray(void *obj)
|
||||||
printf("resize_systray %d %d\n", systray.area.posx, systray.area.width);
|
printf("resize_systray %d %d\n", systray.area.posx, systray.area.width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
void create_hint_win()
|
||||||
|
{
|
||||||
|
XWMHints hints;
|
||||||
|
XClassHint classhints;
|
||||||
|
Panel *panel = systray.area.panel;
|
||||||
|
|
||||||
|
hint_win = XCreateSimpleWindow(server.dsp, server.root_win, 0, 0, 1, 1, 0, 0, 0);
|
||||||
|
|
||||||
|
hints.flags = StateHint | WindowGroupHint | IconWindowHint;
|
||||||
|
hints.initial_state = WithdrawnState;
|
||||||
|
hints.window_group = hint_win;
|
||||||
|
hints.icon_window = panel->main_win;
|
||||||
|
|
||||||
|
classhints.res_name = "docker";
|
||||||
|
classhints.res_class = "Docker";
|
||||||
|
|
||||||
|
XSetWMProperties(server.dsp, hint_win, NULL, NULL, NULL, 0,
|
||||||
|
NULL, &hints, &classhints);
|
||||||
|
|
||||||
|
XMapWindow(server.dsp, hint_win);
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
int init_net()
|
int init_net()
|
||||||
{
|
{
|
||||||
|
@ -166,6 +189,8 @@ int init_net()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//create_hint_win();
|
||||||
|
|
||||||
// init systray protocol
|
// init systray protocol
|
||||||
net_sel_win = XCreateSimpleWindow(server.dsp, server.root_win, -1, -1, 1, 1, 0, 0, 0);
|
net_sel_win = XCreateSimpleWindow(server.dsp, server.root_win, -1, -1, 1, 1, 0, 0, 0);
|
||||||
|
|
||||||
|
@ -203,6 +228,7 @@ void cleanup_net()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
void fix_geometry()
|
void fix_geometry()
|
||||||
{
|
{
|
||||||
|
|
BIN
src/tint2
BIN
src/tint2
Binary file not shown.
4
tintrc01
4
tintrc01
|
@ -6,7 +6,7 @@
|
||||||
# BACKGROUND AND BORDER
|
# BACKGROUND AND BORDER
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
rounded = 7
|
rounded = 7
|
||||||
border_width = 1
|
border_width = 2
|
||||||
background_color = #000000 60
|
background_color = #000000 60
|
||||||
border_color = #ffffff 18
|
border_color = #ffffff 18
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ border_color = #ffffff 70
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
panel_monitor = all
|
panel_monitor = all
|
||||||
panel_position = bottom center
|
panel_position = bottom center
|
||||||
panel_size = 90% 28
|
panel_size = 92% 30
|
||||||
panel_margin = 0 0
|
panel_margin = 0 0
|
||||||
panel_padding = 7 0
|
panel_padding = 7 0
|
||||||
font_shadow = 0
|
font_shadow = 0
|
||||||
|
|
8
tintrc02
8
tintrc02
|
@ -7,13 +7,13 @@
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
rounded = 1
|
rounded = 1
|
||||||
border_width = 0
|
border_width = 0
|
||||||
background_color = #282828 40
|
background_color = #282828 60
|
||||||
border_color = #000000 0
|
border_color = #000000 0
|
||||||
|
|
||||||
rounded = 1
|
rounded = 1
|
||||||
border_width = 1
|
border_width = 1
|
||||||
background_color = #cccccc 0
|
background_color = #cccccc 0
|
||||||
border_color = #cccccc 30
|
border_color = #cccccc 55
|
||||||
|
|
||||||
rounded = 1
|
rounded = 1
|
||||||
border_width = 0
|
border_width = 0
|
||||||
|
@ -25,7 +25,7 @@ border_color = #cccccc 40
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
panel_monitor = all
|
panel_monitor = all
|
||||||
panel_position = bottom center
|
panel_position = bottom center
|
||||||
panel_size = 92% 30
|
panel_size = 95% 30
|
||||||
panel_margin = 0 0
|
panel_margin = 0 0
|
||||||
panel_padding = 7 3 7
|
panel_padding = 7 3 7
|
||||||
font_shadow = 0
|
font_shadow = 0
|
||||||
|
@ -57,7 +57,7 @@ task_active_background_id = 3
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
# SYSTRAYBAR
|
# SYSTRAYBAR
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
systray_padding = 0 2 3
|
systray_padding = 0 4 3
|
||||||
systray_background_id = 0
|
systray_background_id = 0
|
||||||
|
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
|
|
10
tintrc05
10
tintrc05
|
@ -12,7 +12,7 @@ border_color = #000000 0
|
||||||
|
|
||||||
rounded = 1
|
rounded = 1
|
||||||
border_width = 0
|
border_width = 0
|
||||||
background_color = #cccccc 20
|
background_color = #f6b655 90
|
||||||
border_color = #cccccc 40
|
border_color = #cccccc 40
|
||||||
|
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
|
@ -20,7 +20,7 @@ border_color = #cccccc 40
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
panel_monitor = all
|
panel_monitor = all
|
||||||
panel_position = bottom center
|
panel_position = bottom center
|
||||||
panel_size = 95% 22
|
panel_size = 100% 22
|
||||||
panel_margin = 0 0
|
panel_margin = 0 0
|
||||||
panel_padding = 0 0 0
|
panel_padding = 0 0 0
|
||||||
font_shadow = 0
|
font_shadow = 0
|
||||||
|
@ -41,9 +41,9 @@ task_text = 1
|
||||||
task_width = 160
|
task_width = 160
|
||||||
task_centered = 1
|
task_centered = 1
|
||||||
task_padding = 5 0
|
task_padding = 5 0
|
||||||
task_font = sans 9
|
task_font = sans 7.5
|
||||||
task_font_color = #ffffff 60
|
task_font_color = #ffffff 60
|
||||||
task_active_font_color = #ffffff 100
|
task_active_font_color = #000000 100
|
||||||
task_background_id = 0
|
task_background_id = 0
|
||||||
task_active_background_id = 2
|
task_active_background_id = 2
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ systray_background_id = 0
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
# CLOCK
|
# CLOCK
|
||||||
#---------------------------------------------
|
#---------------------------------------------
|
||||||
time1_format = %H:%M:%S
|
time1_format = %H:%M
|
||||||
time1_font = sans 13
|
time1_font = sans 13
|
||||||
#time2_format = %A %d %B
|
#time2_format = %A %d %B
|
||||||
time2_font = sans 7
|
time2_font = sans 7
|
||||||
|
|
Loading…
Reference in a new issue