You are not logged in.
Hello,
I have been remixing some distros with an openbox setup for several years, providing them at "linuxvillage dot org", and I wanted to use tint2 again for its steadyness and lightness.
I am coming to the bunsenlabs community as I can see there are many experts in tint2 configuration. I have browsed all possible tint2 topics, and didn't find what I am looking for :
1) My first question is it possible to have 2 different executors on the same panel, one at each end of the screen?
Here is my setup, originally done by someone else, which I augmented for the recent needs:
# Tint2 config file
# Generated by tintwizard - the forbidden link)
# For information on manually configuring tint2 see (forbidden link)
# Avoid startup notifications witch slows start of items
startup_notifications = 0
# Background definitions
# ID 1
rounded = 3
border_width = 0
background_color = #0d6eff 60
border_color = #0088ff 0
# ID 2
rounded = 3
border_width = 0
background_color = #FFFFFF 0
border_color = #FFFFFF 68
# ID 3
rounded = 3
border_width = 0
background_color = #FFFFFF 0
border_color = #FFFFFF 40
# Panel
panel_items = P::::::L::::::T::::::S::::::B::::::C::::::E::::::
button = new
# button_icon = /usr/share/bento/jgmenu/menu-applications.png
button_icon = /usr/share/bento/jgmenu/cat-head.png
position_mode = fixed
button_lclick_command = jgmenu_run
# panel_monitor = all
panel_monitor = 1
panel_position = top center horizontal
panel_size = 100% 36
panel_margin = 0 0
panel_padding = 0 0 0
panel_dock = 0
wm_menu = 1
panel_layer = bottom
panel_background_id = 1
# Launcher
# Firefox web browser (not snap)
launcher_item_app = /usr/share/applications/firefox.desktop
# Sylpheed Mail client
launcher_item_app = /usr/share/applications/sylpheed.desktop
# Thunderbird mail client
launcher_item_app = /usr/share/applications/thunderbird.desktop
# Hexchat IRC messenging application
launcher_item_app = /usr/share/applications/io.github.Hexchat.desktop
# Evolution Groupware
launcher_item_app = /usr/share/applications/org.gnome.Evolution.desktop
# Libreoffice Writer
launcher_item_app = /usr/share/applications/libreoffice-writer.desktop
# Libreoffice Calc
launcher_item_app = /usr/share/applications/libreoffice-calc.desktop
# Libreoffice Presentation
launcher_item_app = /usr/share/applications/libreoffice-presentation.desktop
# Sakura Virtual Terminal
launcher_item_app = /usr/share/applications/sakura.desktop
# Synaptic Package Manager
launcher_item_app = /usr/share/applications/synaptic.desktop
# PCManFM File Manager
launcher_item_app = /usr/share/applications/pcmanfm.desktop
# Audio Mixer Pavucontrol
launcher_item_app = /usr/share/applications/org.pulseaudio.pavucontrol.desktop
# Panel Autohide
autohide = 0
autohide_show_timeout = 0.1
autohide_hide_timeout = 0.5
autohide_height = 2
strut_policy = minimum
# Taskbar as a pager
# taskbar_mode = single_desktop
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 0
taskbar_distribute_size = 1
taskbar_padding = 2 2 2
taskbar_background_id = 0
#taskbar_active_background_id = 0
# Tasks
urgent_nb_of_blink = 7
task_icon = 1
task_text = 1
task_centered = 0
task_maximum_size = 200 32
task_padding = 3 1
task_background_id = 3
task_active_background_id = 2
task_urgent_background_id = 0
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 = 100 0 0
# Fonts
task_font = DejaVu Sans Bold 12
task_font_color = #D0D0D0 68
task_active_font_color = #FFFFFF 83
task_urgent_font_color = #FFFFFF 100
task_iconified_font_color = #FFFFFF 100
font_shadow = 0
# System Tray
systray = 1
systray_padding = 0 2 2
systray_sort = left2right
systray_background_id = 0
systray_icon_size = 0
systray_icon_asb = 100 0 0
# Clock
# Simple calendar
clock_lclick_command = gsimplecal
# time1_format = %H:%M:%S
time1_format = %H:%M
time1_font = DejaVu Sans Bold 12
# time2_format = %A %d %B
time2_format = %d/%m/%Y
time2_font = DejaVu Sans 9
clock_font_color = #FFFFFF 95
clock_padding = 1 0
clock_background_id = 0
#clock_lclick_command = ~/.fbpanel/dzen.sh
# Tooltips
tooltip = 0
tooltip_padding = 0 0
tooltip_show_timeout = 0
tooltip_hide_timeout = 0
tooltip_background_id = 0
tooltip_font = Sans Bold 12
tooltip_font_color = #FFFFFF 100
# Mouse
mouse_middle = none
mouse_right = none
mouse_scroll_up = toggle
mouse_scroll_down = iconify
# Battery
battery = 1
battery_low_status = 25
battery_low_cmd = notify-send "Battery : 15%"
battery_hide = 0
bat1_font = sans 12
bat2_font = sans 10
battery_font_color = #FFFFFF 100
battery_padding = 1 0
battery_background_id = 0
# Pavucontrol Audio Settings
launcher_item_app = /usr/share/applications/pavucontrol.desktop
# Execution plugin
# execp = shutdown
# execp_has_icon = 1
# execp_command = echo /usr/share/bento/tint2/shutdown
# execp_lclick_command = obsession
This is what I tried, which failed because it was overlapping the jgmenu at the left side, and also rebooting in a loop (argh!)
# Executor 1
execp = new
button_icon = /usr/share/bento/tint2/shutdown.png
execp_command = shutdown
execp_interval = 0
execp_has_icon = 1
execp_cache_icon = 1
execp_continuous = 0
execp_markup = 1
execp_tooltip = manage session
execp_lclick_command = obsession
execp_rclick_command =
execp_mclick_command =
execp_uwheel_command =
execp_dwheel_command =
execp_font = Droid Sans Fallback 12
execp_font_color = #00ffff 100
execp_padding = 0 0
execp_background_id = 0
execp_centered = 0
execp_icon_w = 48
execp_icon_h = 48
Now you might wonder, what is obsession ? This is a program created by FabriceT using some LXDE library, in order to have the same logout tool as in LXDE but without all the dependencies. It is available in the Debian bookworm packages.
1) So I would like to have it at the end of the tint2 panel, on the right side.
I would love to show a screenshot of my panel, but when will I be allowed to post links?
2) I would like the pager to show, in the panel. I have 4 desktops configured, and they seem to work, but I can't know for sure where on the panel they are and how to see them. Ideally, seeing them, separated one from the other, and with a tooltip providing the name of the virtual desk would be the best.
3) I have tried, as you can see, having many ':' signs to get some space between the items, but I don't get any visible result. How do you indeed do that, in a way that works?
Thanks a lot for willing to help me!
Last edited by melodie (2024-11-30 13:37:36)
Offline
@melodie: I think your post is repeating itself, can you edit that down?
1. You can have multiple executors like
panel_items = TESEEC
You can define 'execp_padding' and similar for white space.
See https://gitlab.com/o9000/tint2/blob/mas … d#executor
2. So your scripting out your own pager I assume?
Tooltips are taken from stderr (at least with executors that work in a 'continuous' way)
execp_continuous = 1
I see this two lines in one of my scripts
# clear stuff for tint2 tooltip
>&2 echo -en "\033[2J"
# for tint2 tooltip
>&2 echo "$state"
Again, check the tint2 docs for clarity.
p.s. I believe this was my try at a pager
https://github.com/brontosaurusrex/buce … in/deskSpy
Offline
@melodie: I think your post is repeating itself, can you edit that down?
Done, thanks.
2. So your scripting out your own pager I assume?
Just using the ObConf tool to setup number of desktops and their names. Hence they are added to the rc.xml file. I am not scripting.
Tooltips are taken from stderr (at least with executors that work in a 'continuous' way)
execp_continuous = 1
Is there a chance you can show me how, in the context of the relavant part in my tint2rc file? (Which I tried to create using the tint2 doc, and it works but fails to be visible):
# Taskbar as a pager
# taskbar_mode = single_desktop
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 0
taskbar_distribute_size = 1
taskbar_padding = 2 2 2
taskbar_background_id = 0
#taskbar_active_background_id = 0
(The lines in your script do not seem so clear to me, what about the "echo" command line?)
Offline
I was jumping to conclusions with the whole script/stderr thing, forget about that.
The truth must be in the
taskbar_background_id = integer
taskbar_active_background_id = integer
and their definitions.
Offline
I was jumping to conclusions with the whole script/stderr thing, forget about that.
The truth must be in thetaskbar_background_id = integer taskbar_active_background_id = integer
and their definitions.
Hello brontosaurusrex,
Then what should I do? Just add these two above lines after
# Taskbar as a pager
# taskbar_mode = single_desktop
taskbar_mode = multi_desktop
taskbar_hide_if_empty = 0
taskbar_distribute_size = 1
taskbar_padding = 2 2 2
because if it is that, after I do, save, and throw a "killall -SIGUSR1 tint2" nothing is changed. What about "their definitions" ? What should it look like and how should it look like?
Thanks a lot for trying to help me.
Offline
Hi Melodie
I don't know anything about executors, but I've messed about with tint2 quite a bit so I might be able to help with that.
First the separators. Just putting them in the panel definition like you have won't do anything, you have to define the separators as well. The tint2 docs don't explain how it works, but I assume the first separator definition is for the leftmost separator, the second for the next..... and so on. Take a look at the first piece of code in this post by tknomanzr to see how he's done it, although it looks like he has numbered one of the separators incorrectly - he's got two numbered '5'.
https://forums.bunsenlabs.org/viewtopic.php?id=4276
As for these:
taskbar_background_id = integer
taskbar_active_background_id = integer
Yes, just put them in the taskbar definition like you said. By "their definitions", brontosaurusrex was talking about the definition of their background ID's. Where it says integer, you put the number of the background definitions you want to apply to the active/inactive taskbars. Hope this helps.
Offline
Hello novice,
I have to dive into it and test what you are telling me. I am not sure I understand it all, though. You are right about his numbers, 5 comes twice, at the end of the separators definitions list.
However, I must explain and define what I don't understand. For exemple, in this definition of his:
# Separator 5
separator = new
separator_background_id = 0
separator_color = #5d8185 60
separator_style = line
separator_size = 2
separator_padding = 4 8
What do the separator_padding numbers do? The first one? The second one? Doesn't padding put space all around usually ? Such as "left/top/right/down" ? (At least in CSS coding… )
What is it about “active/inactive taskbars” ? I have one panel, I always have applications running or idle in the taskbar, what is, or would be, the point of having inactive taskbars?
Imo : it is also a pity nobody has continued the tint2wizard project (which was at http://code.google.com/p/tintwizard/). The basis of my configuration file had been done by a buddy long ago, using tintwizard to create a first template.
Now there are forks, at Github and Gitlab I believe, but they are dormant, or archieved…
Offline
What do the separator_padding numbers do? The first one? The second one? Doesn't padding put space all around usually ? Such as "left/top/right/down" ? (At least in CSS coding… )
Based on my experience with CSS (Firefox, Thunderbird and gtk themes) I assume:
top and bottom paddings are 4px
right and left paddings are 8px
I think that's fine for a separator.
Last edited by marens (2024-12-10 16:28:00)
If people would know how little brain is ruling the world, they would die of fear.
Offline
The padding numbers are for space between the separator line itself, and the edges of the separator. In tint2 when there are two padding numbers, the first one is usually for padding on the left/right of the item and the second is for above/below. So in the example above you would have a space of 4 pixels on the left and right of the line, and 8 pixels above and below the line.
There is a taskbar on the panel for each desktop you have running. Bunsenlabs can have up to four desktops. On installation, it's usually set up with (I think) two, so there are two taskbars on the panel. The active one is for the desktop which is showing. I don't use multiple desktops so I always just set it to one. But if you use more than one, it's helpful to set the active one to a different style so you can easily tell which desktop you're on by looking at the panel.
EDIT. Sorry, I was typing this while your last post appeared. It should be Left/Right 4px and Top/Bottom 8px.
Last edited by novice (2024-12-10 16:45:24)
Offline