]> Dogcows Code - chaz/tint2/commitdiff
cleanup config file
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Wed, 1 Apr 2009 20:19:09 +0000 (20:19 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Wed, 1 Apr 2009 20:19:09 +0000 (20:19 +0000)
ChangeLog
doc/tint2-0.7.pdf
src/Makefile
src/config.c
src/systray/systraybar.c
src/tint2
tintrc01
tintrc02
tintrc05

index ecdfc588bc78eb7101d871765aa4168e362fef59..272059fdf8ffc3026962621a0575398f8678219e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
 - fixed segfault when time1_format empty
 - fixed systray : when clock change size
index 2454e22d15ac0772473cca7ba3adcc766a90a3ac..d1a4a7f4b8ead1f456e8503cb1c289171817a30a 100644 (file)
Binary files a/doc/tint2-0.7.pdf and b/doc/tint2-0.7.pdf differ
index a08c75aab6d0b6e638b0cc160eb9867856d9a8c7..cc79c838efa46fcb3b21494709804dfb43a6bcba 100644 (file)
@@ -1,6 +1,6 @@
 CFLAGS= -O2
 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
 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
 
index 272bdcf9865888676d42828cd19db04a728e17c1..ab84eb5a213e44ce9351310d02f7df5a6eddcf2a 100644 (file)
@@ -758,6 +758,12 @@ void save_config ()
    fputs("task_background_id = 2\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("# CLOCK\n", fp);
    fputs("#---------------------------------------------\n", fp);
index 927f9cb5e9e98cf4d48a721678a49b58262d50a4..160cbca17cb26946f905d521a19f079e526458f0 100644 (file)
@@ -37,7 +37,7 @@ GSList *icons;
 #define SYSTEM_TRAY_CANCEL_MESSAGE  2
 
 // selection window
-Window net_sel_win = None;
+Window net_sel_win = None, hint_win = None;
 
 // freedesktop specification doesn't allow multi systray
 Systraybar systray;
@@ -158,6 +158,29 @@ void resize_systray(void *obj)
        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()
 {
@@ -166,6 +189,8 @@ int init_net()
                return 0;
        }
 
+       //create_hint_win();
+
        // init systray protocol
    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()
 {
index afcfa53e90ea2f7e70ffcda9a54f1823be91bc4c..93633a74fd6e814d7bdf66e57c4788640f651bf4 100755 (executable)
Binary files a/src/tint2 and b/src/tint2 differ
index 513724a0613ed45c03b25512b5f59ba562127c89..49978ba696ab45ad516ecea9272ae7b67af27e25 100644 (file)
--- a/tintrc01
+++ b/tintrc01
@@ -6,7 +6,7 @@
 # BACKGROUND AND BORDER
 #---------------------------------------------
 rounded = 7
-border_width = 1
+border_width = 2
 background_color = #000000 60
 border_color = #ffffff 18
 
@@ -25,7 +25,7 @@ border_color = #ffffff 70
 #---------------------------------------------
 panel_monitor = all
 panel_position = bottom center
-panel_size = 90% 28
+panel_size = 92% 30
 panel_margin = 0 0
 panel_padding = 7 0
 font_shadow = 0
index 006516d4b728dce6edec793cc5dbf21614ff2f76..8b725668010c4d0abfae1dfe2eeddd86cc4aa22f 100644 (file)
--- a/tintrc02
+++ b/tintrc02
@@ -7,13 +7,13 @@
 #---------------------------------------------
 rounded = 1
 border_width = 0
-background_color = #282828 40
+background_color = #282828 60
 border_color = #000000 0
 
 rounded = 1
 border_width = 1
 background_color = #cccccc 0
-border_color = #cccccc 30
+border_color = #cccccc 55
 
 rounded = 1
 border_width = 0
@@ -25,7 +25,7 @@ border_color = #cccccc 40
 #---------------------------------------------
 panel_monitor = all
 panel_position = bottom center
-panel_size = 92% 30
+panel_size = 95% 30
 panel_margin = 0 0
 panel_padding = 7 3 7
 font_shadow = 0
@@ -57,7 +57,7 @@ task_active_background_id = 3
 #---------------------------------------------
 # SYSTRAYBAR
 #---------------------------------------------
-systray_padding = 0 2 3
+systray_padding = 0 4 3
 systray_background_id = 0
 
 #---------------------------------------------
index 78a90f2bed92a85dd9ef937995a00c05febb6760..8b076e0e1bda1bab13717cb9b72116e29f0b4cc8 100644 (file)
--- a/tintrc05
+++ b/tintrc05
@@ -12,7 +12,7 @@ border_color = #000000 0
 
 rounded = 1
 border_width = 0
-background_color = #cccccc 20
+background_color = #f6b655 90
 border_color = #cccccc 40
 
 #---------------------------------------------
@@ -20,7 +20,7 @@ border_color = #cccccc 40
 #---------------------------------------------
 panel_monitor = all
 panel_position = bottom center
-panel_size = 95% 22
+panel_size = 100% 22
 panel_margin = 0 0
 panel_padding = 0 0 0
 font_shadow = 0
@@ -41,9 +41,9 @@ task_text = 1
 task_width = 160
 task_centered = 1
 task_padding = 5 0
-task_font = sans 9
+task_font = sans 7.5
 task_font_color = #ffffff 60
-task_active_font_color = #ffffff 100
+task_active_font_color = #000000 100
 task_background_id = 0
 task_active_background_id = 2
 
@@ -56,7 +56,7 @@ systray_background_id = 0
 #---------------------------------------------
 # CLOCK
 #---------------------------------------------
-time1_format = %H:%M:%S
+time1_format = %H:%M
 time1_font = sans 13
 #time2_format = %A %d %B
 time2_font = sans 7
This page took 0.036637 seconds and 4 git commands to generate.