You are not logged in.

#41 2016-05-28 23:06:29

Eraph
Member
From: /au/qld/bne
Registered: 2016-02-29
Posts: 282
Website

Re: tint2 16.2 released :)

No worries mate, I know how it is. Your efforts are appreciated!


Lenovo IdeaPad Yoga 13 | BunsenLabs Hydrogen (x64)
Intel Core i7-3537U | Intel HD4000 | 8GB DDR3 | 256GB SSD

Offline

#42 2016-05-30 02:08:04

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: tint2 16.2 released :)

Much appreciated, both o9000 and nobody!

'man tint2' now comes with the version in BL backports, and long and detailed it is.  cool

(border_sides is in the manual - I haven't yet tested it though.)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#43 2016-05-30 02:11:21

Eraph
Member
From: /au/qld/bne
Registered: 2016-02-29
Posts: 282
Website

Re: tint2 16.2 released :)

nobody wrote:

The current version in backports is

0.12.11~bl1+ee9207e8

so there you go.

You're right, you're right. I was rounding down.


Lenovo IdeaPad Yoga 13 | BunsenLabs Hydrogen (x64)
Intel Core i7-3537U | Intel HD4000 | 8GB DDR3 | 256GB SSD

Offline

#44 2016-08-02 13:54:55

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: tint2 16.2 released :)

.12 out. Very little has changed as I haven't had time to work on tint2 for the last few months.

A notable contribution from a user is the new cosmetic 'border_sides' option. It allows drawing borders on only some sides of an element. Sample:

mdp4.png

Offline

#45 2016-08-19 10:41:19

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: tint2 16.2 released :)

Question:
Regarding this problem

How do firefox-esr - or any other application - communicate with tint2?
My first thought was 'dbus' but I can find no reference to dbus in the tint2 sources.
So it must be via the X server? Any application start/stop is communicated to the tint2 client?
Anyhow, we see tint2 showing a generic icon for firefox-esr, when the following sequence of events occurs:
1. tint2 is killed
2. its config file is overwritten with - the same or an older - version
3. tint2 is restarted

Restarting firefox-esr after these events re-instates the firefox-esr custom icon in tint2.

Do you have an explication for this behaviour?
What can be done to make tint2 show the firefox specific icon without restarting firefox-esr?

Thanks ahead for any pointers,

xaos52

Offline

#46 2016-08-19 12:05:07

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: tint2 16.2 released :)

There are 2 ways in which the icon can be obtained:

(1) through the X server: https://gitlab.com/o9000/tint2/blob/mas … ask.c#L272

The _NET_WM_ICON property of the window contains one or more icons. Tint2 selects the best match based on size: https://gitlab.com/o9000/tint2/blob/mas … dow.c#L278

(2) through the window manager (that would be Openbox): https://gitlab.com/o9000/tint2/blob/mas … ask.c#L286
In this case tint2 reads the WM_HINTS property of the window, which contains, among other things, the icon.

I think the result of (2) should match the icon shown in the Alt-Tab switcher of Openbox.

I also think (1) and (2) should return the same icon, but I'm not 100% sure. Maybe the order should be changed to prioritize (2) over (1), which would yield consistency with the Alt-Tab switcher.

While reading the code I've also found a small problem, after reading the icon, tint2 only reacts to icon updates via changes in _NET_WM_ICON but not WM_HINTS. It is possible that fixing this may fix the issue smile

Otherwise I could add some debugging code to dump all the icons to files while tint2 is running, then we can figure out what's going on with the Firefox icon.

I'll try to make the changes this weekend.

Last edited by o9000 (2016-08-19 12:06:31)

Offline

#47 2016-08-19 12:22:21

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: tint2 16.2 released :)

OK

Thx for the fast response smile

Offline

#48 2016-08-20 15:47:28

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: tint2 16.2 released :)

Can you reproduce the original issue reliably? I don't see it but I don't understand what I should do to reproduce it. I downloaded the latest Firefox ESR binaries as released by mozilla (45.3.0).

If I start tint2 after firefox, as mentioned in the bug report, the icon is correct.

Offline

#49 2016-08-20 16:08:14

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: tint2 16.2 released :)

Oh yes, quite reliably.

1. Use blob script from BL menu 'Accessories' to save your config settings. Save all settings.
2. Make sure firefox-esr is up and tint2 is showing its icon.
3. Use the same BL menu entry to restore your settings.
4. Watch how tint2 is stopped by the script, restarted, and now shows the generic icon.

Offline

#50 2016-08-20 16:32:44

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: tint2 16.2 released :)

I just rebuilt tint2 from your latest commit and get the same behaviour - tint2 shows generic item.

Log messages:

(merlindev ✓) /h/m/g/b/bunsen-utilities systray window 39845903
tint2 : systray started
add_icon: 33554544 (volumeicon), pid 1533, visual 0x1a07580, colormap 33554435, depth 32, width 24, height 24
add_icon: 37748873 (xfce4-power-manager), pid 1568, visual 0x1a07580, colormap 37748739, depth 32, width 24, height 24
add_icon: 41943069 (variety), pid 1562, visual 0x1a07580, colormap 41943043, depth 32, width 24, height 24
add_icon: 29360280 (NetworkManager Applet), pid 1564, visual 0x1a07580, colormap 29360131, depth 32, width 24, height 24
task_update_icon: Got 48x48 icon via _NET_WM_ICON for BLOB Config Manager
task_update_icon: Got 48x48 icon via _NET_WM_ICON for YAD
remove_icon: 29360280 (NetworkManager Applet)
remove_icon: 41943069 (variety)
remove_icon: 37748873 (xfce4-power-manager)
remove_icon: 33554544 (volumeicon)

Offline

#51 2016-08-20 16:38:35

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: tint2 16.2 released :)

I reproduced it too, thanks for the instructions.

This is not a tint2 problem. You may see that the Alt-Tab switcher of Openbox also shows the default icon. Also xprop on the Firefox window shows the default icon.

I'm not sure how to help you find out what's wrong though.

Offline

#52 2016-08-20 16:46:24

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: tint2 16.2 released :)

Well, thanks for your help anyway.
Perhaps we will need to use a workaround: restart firefox in the BLOB script when we detect that firefox was active when the restore operation started. And only overwrite the tint2 config file when it actually differs from the current version. Rather drastic, but I don't see a better solution until we find out more about what exactly happens. Seems  to be firefox specific.

Offline

#53 2016-08-22 15:09:15

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,737

Re: tint2 16.2 released :)

When I switch workspaces (And no app is active) then some app on another workspace gets active automagically, is that an intended behaviour?

Online

#54 2016-08-22 15:36:32

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: tint2 16.2 released :)

If I kill tint2 the behvaiour persists as far as I can see. In both Openbox and xfwm.

Offline

#55 2016-08-22 15:59:16

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,737

Re: tint2 16.2 released :)

Right, so nothing tint2 related.

Online

#56 2016-10-02 12:27:40

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: tint2 16.2 released :)

A user has contributed a separator plugin, which I've just added to master (no new release yet so to try it you'll have to pull and compile from source).

Can work in 3 modes: blank, draw a line, or draw dots.

Here is a screenshot with 3 of them (red, green and black):

separator.png

The separator code in panel_items is ":". Here is the documentation: https://gitlab.com/o9000/tint2/blob/mas … #separator

So the config would look like this:

panel_items = :C:S:T

# ...

#-------------------------------------
# Separator 1
separator = new
separator_background_id = 0
separator_color = #fc3c3c 100
separator_style = dots
separator_size = 5
separator_padding = 1 0

#-------------------------------------
# Separator 2
separator = new
separator_background_id = 0
separator_color = #4fd95b 100
separator_style = line
separator_size = 3
separator_padding = 0 0

#-------------------------------------
# Separator 3
separator = new
separator_background_id = -1
separator_color = #000000 100
separator_style = dots
separator_size = 3
separator_padding = 0 0

Last edited by o9000 (2016-10-02 12:31:58)

Offline

#57 2016-10-03 18:47:44

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: tint2 16.2 released :)

The same user provided a patch to allow adding gradients as backgrounds. I redesigned it a bit and just pushed it to master.

No tint2conf support is available yet for gradients. The configuration is documented here with a couple of examples: https://gitlab.com/snippets/27748

Simple gradients can be added with just a couple of lines of config. But it's also possible to add pretty complex ones.

Let me know how it goes if you try it.

gradients.png

Last edited by o9000 (2016-10-03 18:52:51)

Offline

#58 2016-10-03 20:08:29

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: tint2 16.2 released :)

Thanks for your work on this....

I've built the latest master, and added separators ( great feature, btw smile ), however the taskbar background has disappeared. Maybe it is another setting I am missing, but this scrot shows the tint2 from the repos (top), and the same tint2rc using the build from master, with and without a separator.

tint2s.th.png

NB the scrot.moe thumbnail crops the sides, so you need to click on it for the full image.

Before playing with the new gradients feature I'd like to get this sorted....

EDIT: I guess I should post the config (running on a bunsenified Mint Sarah):

#---- Generated by tint2conf caee ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for 
# full documentation of the configuration options.
#-------------------------------------
# Backgrounds
# Background 1: Default task, Panel
rounded = 2
border_width = 1
background_color = #6C759C 38
border_color = #d8d8d8 20
background_color_hover = #282828 38
border_color_hover = #d8d8d8 0
background_color_pressed = #282828 38
border_color_pressed = #d8d8d8 0

# Background 2: Active taskbar
rounded = 2
border_width = 1
background_color = #172a56 21
border_color = #ffffff 60
background_color_hover = #172a56 21
border_color_hover = #a39e9e 60
background_color_pressed = #172a56 21
border_color_pressed = #a39e9e 60

# Background 3: Active task, Iconified task, Systray
rounded = 1
border_width = 0
background_color = #596b94 52
border_color = #ffffff 100
background_color_hover = #596b94 52
border_color_hover = #ffffff 100
background_color_pressed = #596b94 52
border_color_pressed = #ffffff 100

# Background 4: Taskbar
rounded = 2
border_width = 1
background_color = #282828 38
border_color = #d8d8d8 30
background_color_hover = #282828 38
border_color_hover = #d8d8d8 20
background_color_pressed = #282828 38
border_color_pressed = #d8d8d8 0

# Background 5: 

rounded = 2
border_width = 1
background_color = #172a56 21
border_color = #a39e9e 60
background_color_hover = #172a56 21
border_color_hover = #a39e9e 60
background_color_pressed = #172a56 21
border_color_pressed = #a39e9e 60

#-------------------------------------
# Separator 1
separator = new
separator_background_id = 0
separator_color = #4fd95b 60
separator_style = dots
separator_size = 3
separator_padding = 1 0

# Separator 2
separator = new
separator_background_id = 0
separator_color = #4fd95b 60
separator_style = dots
separator_size = 3
separator_padding = 0 0

# Separator 3
separator = new
separator_background_id = 0
separator_color = #4fd95b 60
separator_style = dots
separator_size = 3
separator_padding = 0 0

# Separator 4
separator = new
separator_background_id = 0
separator_color = #4fd95b 60
separator_style = dots
separator_size = 3
separator_padding = 0 0
#-------------------------------------
# Panel
panel_items = :T:S:C:
panel_size = 98% 28
panel_margin = 1 1
panel_padding = 4 0 4
panel_background_id = 1
wm_menu = 0
panel_dock = 0
panel_position = bottom center horizontal
panel_layer = top
panel_monitor = all
primary_monitor_first = 0
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 1.5
autohide_height = 6
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 0
mouse_effects = 0
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0

#-------------------------------------
# Taskbar
taskbar_mode = multi_desktop
taskbar_padding = 3 0 6
taskbar_background_id = 4
taskbar_active_background_id = 2
taskbar_name = 0
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 0 0
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font_color = #000000 100
taskbar_name_active_font_color = #000000 100
taskbar_distribute_size = 0
taskbar_sort_order = center
task_align = left

#-------------------------------------
# Task
task_text = 0
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 20
task_maximum_size = 25 30
task_padding = 2 2 2
task_font = monospace 06_55 6
task_tooltip = 1
task_font_color = #d8d8d8 60
task_active_font_color = #d8d8d8 100
task_urgent_font_color = #ffffff 100
task_iconified_font_color = #d8d8d8 60
task_icon_asb = 90 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 90 0 0
task_background_id = 1
task_active_background_id = 3
task_urgent_background_id = 0
task_iconified_background_id = 3
mouse_left = toggle_iconify
mouse_middle = none
mouse_right = maximize_restore
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#-------------------------------------
# System tray (notification area)
systray_padding = 4 2 3
systray_background_id = 3
systray_sort = ascending
systray_icon_size = 24
systray_icon_asb = 100 0 0
systray_monitor = 1

#-------------------------------------
# Launcher
launcher_padding = 0 0 0
launcher_background_id = 0
launcher_icon_background_id = 0
launcher_icon_size = 0
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 0
launcher_tooltip = 0

#-------------------------------------
# Clock
time1_format = %H:%M:%S
time2_format = %a %d %b
time1_font = monospace 8
time1_timezone = 
time2_timezone = 
time2_font = monospace 6
clock_font_color = #ffffff 100
clock_padding = 4 4
clock_background_id = 0
clock_tooltip = 
clock_tooltip_timezone = 
clock_lclick_command = gnome-calculator
clock_rclick_command = gnome-calendar
clock_mclick_command = 
clock_uwheel_command = 
clock_dwheel_command = 

#-------------------------------------
# Battery
battery_tooltip = 1
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
bat1_font = Free Serif 8
bat2_font = Free Serif 8
battery_font_color = #f9ea02 100
battery_padding = 2 0
battery_background_id = 0
battery_hide = 0
battery_lclick_command = 
battery_rclick_command = 
battery_mclick_command = 
battery_uwheel_command = 
battery_dwheel_command = 
ac_connected_cmd = 
ac_disconnected_cmd = 

#-------------------------------------
# Tooltip
tooltip_show_timeout = 0
tooltip_hide_timeout = 0
tooltip_padding = 2 2
tooltip_background_id = 0
tooltip_font_color = #d8d8d8 100
tooltip_font = monospace normal 8.0

#------------------------------------
# Executor

Last edited by damo (2016-10-03 20:29:28)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#59 2016-10-03 21:29:28

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: tint2 16.2 released :)

Indeed I broke it:) I'll take a look tomorrow.

Offline

#60 2016-10-03 21:32:27

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: tint2 16.2 released :)

^ not just me then big_smile


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

Board footer

Powered by FluxBB