Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tint2: Getting battery and volume icons to show
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Rozza
n00b
n00b


Joined: 17 Jun 2018
Posts: 10

PostPosted: Tue Jul 03, 2018 8:26 am    Post subject: Tint2: Getting battery and volume icons to show Reply with quote

Hey everyone,

So I have successfully installed and configured my gentoo setup to what I am after (Yay). I am having one,small final issue though however. I am using i3-gaps as my WM, and have used tint2 as my panel. So far it is showing the clock (with the date underneath) and the nm-applet, but not a battery or volume icon. I have read what I could about tint (arch linux wiki, gitlab page, a few other distro forum posts) but I cannot seem to figure out how to get the icons to appear. The volume icon I can probably do without, but I desperately need a battery icon. Here is my current tint2 config:

Code:
#---- Generated by tint2conf 2641 ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Backgrounds
# Background 1: Panel
rounded = 0
border_width = 0
background_color = #000000 60
border_color = #000000 30
background_color_hover = #000000 60
border_color_hover = #000000 30
background_color_pressed = #000000 60
border_color_pressed = #000000 30

# Background 2: Default task, Iconified task
rounded = 4
border_width = 1
background_color = #777777 20
border_color = #777777 30
background_color_hover = #aaaaaa 22
border_color_hover = #eaeaea 44
background_color_pressed = #555555 4
border_color_pressed = #eaeaea 44

# Background 3: Active task
rounded = 4
border_width = 1
background_color = #777777 20
border_color = #ffffff 40
background_color_hover = #aaaaaa 22
border_color_hover = #eaeaea 44
background_color_pressed = #555555 4
border_color_pressed = #eaeaea 44

# Background 4: Urgent task
rounded = 4
border_width = 1
background_color = #aa4400 100
border_color = #aa7733 100
background_color_hover = #cc7700 100
border_color_hover = #aa7733 100
background_color_pressed = #555555 4
border_color_pressed = #aa7733 100

# Background 5: Tooltip
rounded = 1
border_width = 1
background_color = #ffffaa 100
border_color = #000000 100
background_color_hover = #ffffaa 100
border_color_hover = #000000 100
background_color_pressed = #ffffaa 100
border_color_pressed = #000000 100

#-------------------------------------
# Panel
panel_items = LTSBC
panel_size = 100% 30
panel_margin = 0 0
panel_padding = 2 0 2
panel_background_id = 1
wm_menu = 1
panel_dock = 0
panel_position = bottom center horizontal
panel_layer = top
panel_monitor = all
primary_monitor_first = 0
autohide = 0
autohide_show_timeout = 0
autohide_hide_timeout = 0.5
autohide_height = 2
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 1
mouse_effects = 1
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0

#-------------------------------------
# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 0 0 2
taskbar_background_id = 0
taskbar_active_background_id = 0
taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 4 2
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font_color = #e3e3e3 100
taskbar_name_active_font_color = #ffffff 100
taskbar_distribute_size = 0
taskbar_sort_order = none
task_align = left

#-------------------------------------
# Task
task_text = 1
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 100000
task_maximum_size = 150 35
task_padding = 2 2 4
task_tooltip = 1
task_font_color = #ffffff 100
task_background_id = 2
task_active_background_id = 3
task_urgent_background_id = 4
task_iconified_background_id = 2
mouse_left = toggle_iconify
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

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

#-------------------------------------
# Launcher
launcher_padding = 2 4 2
launcher_background_id = 0
launcher_icon_background_id = 0
launcher_icon_size = 24
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 1
launcher_tooltip = 1
launcher_item_app = /usr/share/applications/tint2conf.desktop
launcher_item_app = /usr/local/share/applications/tint2conf.desktop
launcher_item_app = /usr/share/applications/firefox.desktop
launcher_item_app = /usr/share/applications/iceweasel.desktop
launcher_item_app = /usr/share/applications/chromium-browser.desktop
launcher_item_app = /usr/share/applications/google-chrome.desktop

#-------------------------------------
# Clock
time1_format = %H:%M
time2_format = %A %d %B
time1_timezone =
time2_timezone =
clock_font_color = #ffffff 100
clock_padding = 2 0
clock_background_id = 0
clock_tooltip =
clock_tooltip_timezone =
clock_lclick_command =
clock_rclick_command = orage
clock_mclick_command =
clock_uwheel_command =
clock_dwheel_command =

#-------------------------------------
# Battery
bat1_format = %p
battery_tooltip = 1
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_font_color = #ffffff 100
battery_padding = 1 0
battery_background_id = 0
battery_hide = never
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.5
tooltip_hide_timeout = 0.1
tooltip_padding = 2 2
tooltip_background_id = 5
tooltip_font_color = #222222 100


Is the issue with the config file? Or do I need to install more packages? If so, what packages should I be after?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Tue Jul 03, 2018 9:09 am    Post subject: Reply with quote

battery = 1?
Back to top
View user's profile Send private message
Rozza
n00b
n00b


Joined: 17 Jun 2018
Posts: 10

PostPosted: Tue Jul 03, 2018 9:16 am    Post subject: Reply with quote

Ant P. wrote:
battery = 1?


Sorry I don't fully understand (I am most definitely missing something obvious). Do I need battery = 1 somewhere?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Tue Jul 03, 2018 9:44 am    Post subject: Reply with quote

Oh... I thought it'd be in the documentation somewhere but it looks like it's not. Yes, you need that line. You also need "B" in panel_items, if it's set.
Back to top
View user's profile Send private message
Rozza
n00b
n00b


Joined: 17 Jun 2018
Posts: 10

PostPosted: Tue Jul 03, 2018 9:58 am    Post subject: Reply with quote

Ant P. wrote:
Oh... I thought it'd be in the documentation somewhere but it looks like it's not. Yes, you need that line. You also need "B" in panel_items, if it's set.


OK good, I thought it was just me being thick. I tried your suggestions (panel_items already had B in it), but still no luck. I put battery = 1 all over the place in case I was putting the line in the wrong position. There isn't some piece of software I need?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5593

PostPosted: Tue Jul 03, 2018 12:46 pm    Post subject: Reply with quote

Looking at the source, it also seems to ignore batteries that don't report detailed enough info. Check that yours has a /sys/class/power_supply/*/charge_now or similar file.
Back to top
View user's profile Send private message
Rozza
n00b
n00b


Joined: 17 Jun 2018
Posts: 10

PostPosted: Sun Jul 08, 2018 7:03 am    Post subject: Reply with quote

Ant P. wrote:
Looking at the source, it also seems to ignore batteries that don't report detailed enough info. Check that yours has a /sys/class/power_supply/*/charge_now or similar file.


Thanks for all the help Ant P. Unfortunately, I could not figure out how to get tint2 to work properly. I decided on going back to i3blocks, as it's something that I am familiar with and, in my opinion, is a lot easier to customize.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum