guest@dotshare [~/groups/panels/tint2] $ ls Overlaying-dock/ | cat

Overlaying dock (scrot)

Darkwater Oct 20, 2013 (panels/tint2)

tint2rc(raw, dl)

SCROT

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
# For more information about tint2, see:
# http://code.google.com/p/tint2/wiki/Welcome
#
# For more config file examples, see:
# http://crunchbanglinux.org/forums/topic/3232/my-tint2-config/

# Background definitions
# ID 1
rounded = 0
border_width = 0
background_color = #000000 60
border_color = #828282 0

# ID 2 - task
rounded = 0
border_width = 0
background_color = #000000 0
border_color = #000000 0

# ID 3 - task active
rounded = 0
border_width = 0
background_color = #00AFFF 30
border_color = #000000 0

# ID 4 - task urgent
rounded = 0
border_width = 0
background_color = #FFAF00 100
border_color = #ED2323 80

# ID 5 - taskbar
rounded = 0
border_width = 1
background_color = #1d1f21 100
border_color = #000000 0

# ID 6 - active taskbar
rounded = 0
border_width = 1
background_color = #1d1f21 100
border_color = #00AFFF 100

# ID 7 - tooltip
rounded = 0
border_width = 0
background_color = #1D1F21 90
border_color = #1D1F21 90

# ID 8 - task iconified (added 22 oct, after initial submission)
rounded = 0
border_width = 0
background_color = #000000 100
border_color = #000000 0

# Panel
panel_monitor = all
panel_position = bottom center horizontal
panel_items = T
panel_size = 40% 25
panel_margin = 0 -1 10
panel_padding = 0 0 10
panel_dock = 0
wm_menu = 1
panel_layer = top
panel_background_id = 0

# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 1.5
autohide_height = 0
strut_policy = none

# Taskbar
taskbar_mode = multi_desktop
taskbar_padding = 4 0 0
taskbar_background_id = 5
taskbar_active_background_id = 6
taskbar_name = 0
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font = Droid Sans Mono 9
taskbar_name_font_color = #828282 100
taskbar_name_active_font_color = #ED2323 100

# Tasks
urgent_nb_of_blink = 20
task_icon = 1
task_text = 0
task_centered = 0
task_maximum_size = 30 20
task_padding = 5 2
task_background_id = 2
task_active_background_id = 3
task_urgent_background_id = 4
task_iconified_background_id = 8

# Task Icons
task_icon_asb = 80 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 50 0 0

# Fonts
task_font = Droid Sans Mono 8
task_font_color = #828282 90
task_active_font_color = #828282 100
task_urgent_font_color = #FFFFFF 100
task_iconified_font_color = #d8d8d8 90
font_shadow = 0

# Launcher
launcher_padding = 8 4 4
launcher_background_id = 0
launcher_icon_size = 24
# Specify icon theme names with launcher_icon_theme.
# if you have an XSETTINGS manager running (like xfsettingsd), tint2 will follow your current theme.
launcher_icon_theme = gnome-colors-statler
# Each launcher_item_app must be a full path to a .desktop file
launcher_item_app = /usr/share/applications/terminator.desktop
launcher_item_app = /usr/share/applications/xfce4-file-manager.desktop
launcher_item_app = /usr/share/applications/gedit.desktop
launcher_item_app = /usr/share/applications/iceweasel.desktop

# System Tray
systray = 1
systray_padding = 4 2 3
systray_sort = right2left
systray_background_id = 0
systray_icon_size = 24
systray_icon_asb = 100 0 0

# Clock
time1_format = %H:%M
time1_font = Liberation Sans 11
#time2_format = %A %d %B
#time2_font = Liberation Sans 6
clock_font_color = #b5b5b5 100
clock_padding = 12 4
clock_background_id = 0
clock_lclick_command = gsimplecal
clock_rclick_command = gsimplecal

# Tooltips
tooltip = 1
tooltip_padding = 5 3
tooltip_show_timeout = 0.0
tooltip_hide_timeout = 0.0
tooltip_background_id = 7
tooltip_font_color = #d8d8d8 100
tooltip_font = Liberation Sans normal 9.0

# Mouse
mouse_middle = none
mouse_right = toggle
mouse_scroll_up = toggle
mouse_scroll_down = iconify

# Battery
battery = 1
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
battery_hide = 96
bat1_font = Liberation Mono 8
bat2_font = Liberation Mono 8
battery_font_color = #b5b5b5 100
battery_padding = 2 0
battery_background_id = 0

# End of config

CLICK TO VIEW

x

mouse.c(raw, dl)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <X11/Xlib.h>

int main(int argc, char **argv) {
    Display *display;
    XEvent xevent;
    Window window;

    if ((display = XOpenDisplay(NULL)) == NULL)
        return -1;

    window = DefaultRootWindow(display);
    XSelectInput(display, window, PointerMotionMask);


    while (1) {
        XNextEvent(display, &xevent);

        switch (xevent.type) {
            case MotionNotify:
                if (xevent.xmotion.y_root < 1) {
                    XWarpPointer(display, None, window, 0, 0, 0, 0, xevent.xmotion.x_root, 1);
                    XFlush(display);
                }
                break;
        }
    }

    return 0;
}
 

x

Notes

Here goes my first submission :v

It’s on the top layer above all windows, but it should be easy to change this if you don’t want that.

On my setup, (using openbox) maximized windows can overlay tint2 in some cases. My ‘fix’ was to maximize windows to 1920x1079+0+1, and have a program run in the background that moves the cursor when it tries to go to y=0. (see mouse.c; compile it with gcc mouse.c -o mouse -lX11)

The clock in the corner is a cronjob that creates a dzen2 window which lasts 60 seconds every minute:

* * * * * DISPLAY=:0 /home/dark/bin/dzenclock 2>/dev/null>/dev/null

and the bash one-liner:

/bin/date "+%H:%M " | /usr/local/bin/dzen2 -fg '#C5C8C6' -bg '#1D1F21' -fn 'Droid Sans-11' -ta c -x 1850 -y 1057 -w 70 -h 23 -p 60

Adjust -x and -y to match your screen resolution. c:

Here’s the background in case anyone’s interested: http://dev.novaember.com/s/background2.png

Enjoy!