You are not logged in.

#1 2014-09-06 16:54:17

SergentPepper
Member
Registered: 2014-07-19
Posts: 10

SOLVED - Tint2-svn battery indicator displays nothing

Hello

I'm using openbox + tint2svn on my laptop and I cannot get the battery indicator built-in tint2 to work properly. At best, it shows a grey rectangle that never changes, but does disappear when i plug the laptop in AND remove the battery. Nothing happens when I click on it, ect...
The only power management tools I use are tlp and thermald.

This is what it looks like :
mini_521945tint2BatteryIndicator.png
http://hpics.li/a2572f7

So if you have

and there is my tint2rc file, battery-related stuff :

# Panel
panel_monitor = 1
panel_position = center left vertical
panel_items = TBSC
panel_size = 100% 77
panel_margin = 0 0
panel_padding = 0 0
panel_dock = 0
wm_menu = 1
panel_layer = top
panel_background_id = 1
strut_policy = minimum

# BATTERY
battery = 1
battery_hide = never
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
bat1_font = Cantarell normal 13
bat2_font = Cantarell normal 13
battery_font_color = #000000 100
battery_padding = 0 0 
battery_background_id = 8

And there is the complete file, in case you'd need something else :

# ID 0 - taskbar active - taskbar inactive - task inactive - task iconified 

# ID 1 - panel
rounded = 7	
border_width = 3
background_color = #ededed 100
border_color = #bbbbbb 100

# ID 2 - task active
rounded = 7
border_width = 0
background_color = #bbbbbb 100
border_color = #000000 0

# ID 3 - task inactive - del
rounded = 0
border_width = 0
background_color = #000000 0
border_color = #000000 0

# ID 4 - task urgent
rounded = 7
border_width = 2
background_color = #888888 0
border_color = #000000 100

# ID 5 - taskbar inactive - del
rounded = 3
border_width = 2
background_color = #000000 0
border_color = #000000 0

# ID 6 - taskbar active - del
rounded = 7
border_width = 0
background_color = #000000 0
border_color = #bbbbbb 100

# ID 7 - popup
rounded = 10
border_width = 2
background_color = #222222 100
border_color = #000000 100
	
# ID 8 - battery
rounded = 0
border_width = 2
background_color = #000000 50
border_color = #bbbbbb 100

# Panel
panel_monitor = 1
panel_position = center left vertical
panel_items = TBSC
panel_size = 100% 77
panel_margin = 0 0
panel_padding = 0 0
panel_dock = 0
wm_menu = 1
panel_layer = top
panel_background_id = 1
strut_policy = minimum

# Panel Autohide
autohide = 1
autohide_show_timeout = 0.2
autohide_hide_timeout = 0.5
autohide_height = 1

# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 6 0 6
taskbar_background_id = 0
taskbar_active_background_id = 0
taskbar_name = 0
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font = Liberation Sans 9
taskbar_name_font_color = #828282 100
taskbar_name_active_font_color = #828282 100

# Tasks
urgent_nb_of_blink = 20
task_icon = 1
task_text = 0
task_centered = 1
task_maximum_size = 65 65	
task_padding = 0 0 
task_background_id = 0
task_active_background_id = 2
task_urgent_background_id = 4
task_iconified_background_id = 0

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

# Fonts
task_font = Cantarell normal 12
task_font_color = #828282 60
task_active_font_color = #828282 100
task_urgent_font_color = #FFFFFF 100
task_iconified_font_color = #d8d8d8 60
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

# System Tray
systray = 1
systray_padding = 4 10 3
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 32
systray_icon_asb = 100 0 0

# Clock
time1_format = %H:%M
time1_font = Cantarell normal 13
time2_format = %a %d
time2_font = Cantarell normal 13
clock_font_color = #000000 100
clock_padding = 12 4
clock_background_id = 0
#clock_lclick_command = gsimplecal
#clock_rclick_command = gsimplecal

# Tooltips
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.5
tooltip_hide_timeout = 0.0
tooltip_background_id = 7
tooltip_font_color = #d8d8d8 100
tooltip_font = Cantarell normal 12

# Mouse
mouse_middle = close
mouse_right = toggle
#mouse_scroll_up = maximize_restore
#mouse_scroll_down = maximize_restore

# BATTERY
battery = 1
battery_hide = never
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
bat1_font = Cantarell normal 13
bat2_font = Cantarell normal 13
battery_font_color = #000000 100
battery_padding = 0 0 
battery_background_id = 8

Thanks in advance for any help you'll offer me smile

Edit : more appropriate name + solved
SergentPepper

Last edited by SergentPepper (2014-09-08 17:20:28)

Offline

#2 2014-09-08 17:19:00

SergentPepper
Member
Registered: 2014-07-19
Posts: 10

Re: SOLVED - Tint2-svn battery indicator displays nothing

OK, so I'll just answer my own topic in case someone needs it.
I found this issue :
https://code.google.com/p/tint2/issues/detail?id=372
as the person say, patched, and the patch seem to be part of the tint2-svn package by default, though, for tint2-svn to display, one need to specifie which information the battery applet need to display, which is done this way (from the linked page) :

Add something like:
    bat1_format = %p - %t
to your tint2rc to hide the second line. To get the default, something akin to 
    bat1_format = %p
    bat2_format = %t
will be roughly the same.

Offline

Board footer

Powered by FluxBB