Re: Tint2 Help

ShortedOutSynapse wrote:

I heard somewhere about Tint2 including a file in the installation but I'm yet to find it.

Well if you download the tint2 source code it comes with several sample configs. Also heres the "main" example (located in /etc/xdg/tint2/):

# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure

# Background definitions
# ID 1
rounded = 7
border_width = 2
background_color = #000000 60
border_color = #FFFFFF 16

# ID 2
rounded = 5
border_width = 0
background_color = #FFFFFF 40
border_color = #FFFFFF 48

# ID 3
rounded = 5
border_width = 0
background_color = #FFFFFF 16
border_color = #FFFFFF 68

# Panel
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 94% 30
panel_margin = 0 0
panel_padding = 7 0 7
panel_dock = 0
wm_menu = 0
panel_layer = top
panel_background_id = 1

# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 2
strut_policy = follow_size

# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 2 3 2
taskbar_background_id = 0
taskbar_active_background_id = 0

# Tasks
urgent_nb_of_blink = 8
task_icon = 1
task_text = 1
task_centered = 1
task_maximum_size = 140 35
task_padding = 6 2
task_background_id = 3
task_active_background_id = 2
task_urgent_background_id = 2
task_iconified_background_id = 3

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

# Fonts
task_font = sans 7
task_font_color = #FFFFFF 68
task_active_font_color = #FFFFFF 83
task_urgent_font_color = #FFFFFF 83
task_iconified_font_color = #FFFFFF 68
font_shadow = 0

# System Tray
systray = 1
systray_padding = 0 4 5
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 16
systray_icon_asb = 70 0 0

# Clock
time1_format = %H:%M
time1_font = sans 8
time2_format = %A %d %B
time2_font = sans 6
clock_font_color = #FFFFFF 74
clock_padding = 1 0
clock_background_id = 0
clock_rclick_command = orage

# Tooltips
tooltip = 0
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 1
tooltip_font = sans 10
tooltip_font_color = #000000 80

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

# Battery
battery = 0
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_hide = 98
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #FFFFFF 74
battery_padding = 1 0
battery_background_id = 0

# End of config
Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Tint2 Help

I'm thinking it would be easier to just remove commented variables from my conkyrc instead of trying to find a tint2rc with all of them.
Pus, a whopping kilobyte of space saved on my HDD for... well... I'm sure they add up lol

Re: Tint2 Help

I don't think you can find a better config than the one included with tint2 or on the wiki.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: Tint2 Help

anonymous wrote:

I don't think you can find a better config than the one included with tint2 or on the wiki.

It's just that Tint2's stock config isn't my cup of ayahuasca... (wouldn't match my box or my openbox)

Re: Tint2 Help

I meant you won't find a more complete config than the one on the wiki. Of course you can tweak it. If you want ideas, look here:

http://crunchbanglinux.org/forums/topic … t2-config/

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

206

Re: Tint2 Help

Has anyone been able to create a launcher for thunar in the current tint2? I have tried and tried and have been unsuccessful.

The launchers are supposed to point to a .desktop file however, on either of my machines, when I point tint2 to the Thunar.desktop file, it doesn't load the launcher.

| EeePC 1000HE>Archlinux XFCE | Dell Latitude D610>Debian Wheezy XFCE @omns post-install |
| HomeBuilt Desktop>#! Wheezy OpenBox | HomeBuilt HTPC>Debian Netinstall XBMC |
| whird.jpope.org | google+ | last.fm | identi.ca |

Re: Tint2 Help

a sample launcher section. works here :

# Launcher
launcher_padding = 8 4 4
launcher_background_id = 0
launcher_icon_size = 24
# Specify an icon theme names with launcher_icon_theme (e.g. oxygen, Tango)
launcher_icon_theme = AwOken
# Each launcher_item_app must be a full path to a .desktop file
launcher_item_app = /usr/share/applications/xfce4-file-manager.desktop
launcher_item_app = /usr/share/applications/geany.desktop
launcher_item_app = /usr/share/applications/icedove.desktop
launcher_item_app = /usr/share/applications/iceweasel.desktop

check 'ls -l /usr/share/applications' to see all applications
thunar file is 'xfce4-file-manager.desktop'

208

Re: Tint2 Help

thil77 wrote:

check 'ls -l /usr/share/applications' to see all applications
thunar file is 'xfce4-file-manager.desktop'

Thanks.
Unfortunately, I don't have xfce4-file-manager.desktop. But, I did just find that Thunar-folder-handler.desktop does work in tint2. I swear I tried that one before... wink

| EeePC 1000HE>Archlinux XFCE | Dell Latitude D610>Debian Wheezy XFCE @omns post-install |
| HomeBuilt Desktop>#! Wheezy OpenBox | HomeBuilt HTPC>Debian Netinstall XBMC |
| whird.jpope.org | google+ | last.fm | identi.ca |

Re: Tint2 Help

this is a bit late, so you may not need it, but you can make your own .desktop file, just make a text file with the .desktop extension...anything that you can run in the shell, you can run after the "exec" line and you can put whatever icon path you want in there as well.
here's a sample I made to have a button call a custom script:

Name=maximize
Exec=/home/USR/maximize.sh
Icon=/home/USR/images/maximize.png
Terminal=false
StartupNotify=false
Type=Application

to open it in a text editor, just type:

sudo gedit /usr/share/applications/thunar.desktop

then write something like this

Name=Thunar
Exec=thunar
Icon=home [or whatever png file you want]
Terminal=false
StartupNotify=false
Type=Application

hit save, then in your tint2rc add the new link to thunar.desktop
done.

210

Re: Tint2 Help

Can anyone please explain me how to remove the second string in "clock" section, with date? I tried to edit tint2rc, here is the "clock":

# Clock
time1_format = %H:%M
time1_font = URW Gothic L Semi-Bold 11
clock_font_color = #FFFFFF 100
clock_tooltip = %B, %d, %A
clock_padding = 6 0
clock_background_id = 0

but it is shown anyway:
http://i53.tinypic.com/r9e4d1.png
Why?
And the second question: when i just installed crunchbang, i could open a calendar by left-click on clock. But while i edited config file, this feature is gone. How can i come it back?
Thank you for attention, and pardon for my bad French )

211

Re: Tint2 Help

Did you restart tint2? You have to do that in order for tint2 to recognise changes made to its config file.

In order to open an application, place this in your tint2rc:

clock_lclick_command = <command>
clock_rclick_command = <command>
Let's do it and don't screw it.
      Github || Deviantart

212

Re: Tint2 Help

Unia wrote:

Did you restart tint2? You have to do that in order for tint2 to recognise changes made to its config file.

Yes, many times, and i restarted system too.

Unia wrote:

In order to open an application, place this in your tint2rc:

clock_lclick_command = <command>
clock_rclick_command = <command>

I know this, thanks. but which command calls calendar? There was one by default, but it is gone now, and i didn't backup config file roll

Last edited by ques (2011-02-22 17:00:31)

Re: Tint2 Help

ques wrote:

I know this, thanks. but which command calls calendar? There was one by default, but it is gone now, and i didn't backup config file roll

Here you go:

# Clock
time1_format = %H:%M
time1_font = DejaVu Sans Mono bold 12
clock_font_color = #FFFFFF 100
clock_padding = 4 4
clock_background_id = 0
clock_rclick_command = gsimplecal
clock_lclick_command = 
#clock_tooltip = %A %d %B  ### comment this out

~/.config/gsimplecal/config

Last edited by Sector11 (2011-02-22 17:13:37)

214

Re: Tint2 Help

Sector 11
Thanks a lot, it works
All
But still there's a weird story with the second string of clock. It doesn't want to disappear! yikes

Last edited by ques (2011-02-22 17:42:51)

215

Re: Tint2 Help

[Hey, i found a solution. I downloaded fresh tintwizard from here: http://code.google.com/p/tintwizard/
and it has some useful checkboxes:
http://i1211.photobucket.com/albums/cc422/alejande/tintwizard.png
so, now clock looks like i want it to. But i still don't know why roll, because

# Clock
time1_format = %H:%M
time1_font = URW Gothic L Semi-Bold 11
clock_font_color = #FFFFFF 100
clock_tooltip = 
clock_padding = 6 0
clock_background_id = 0
clock_lclick_command = gsimplecal
time1_timezone = 
time2_timezone = 
clock_tooltip_timezone = 

Last edited by ques (2011-02-22 18:12:42)

Re: Tint2 Help

ques wrote:

so, now clock looks like i want it to. But i still don't know why roll

You're welcome!

Two things:

1. if it works; don't fix it!
2. if it works, don't question it!
- 2.a UNLESS you make a backup: as it just might stop working!

Re: Tint2 Help

just a guess, but the problem might have been a line somewhere in the config file with time2_format = ...
While by default, the tint2 config file groups all the settings together, it's really the specific tags that matter, not the placement...so a line that said time2_format = .... anywhere in the file would have the same effect.  Just a guess of course.  Couldn't tell without seeing the full messed up cfg file....then again you seem to have fixed it, so good for you.

Re: Tint2 Help

hello there,
i've replaced my tint2-config with the one provided here:
http://crunchbanglinux.org/forums/post/109100/#p109100
which is really very nice, me thinks.

however, my problem is that when i maximize a window/browser/programm it overlapps the tint2-bar completely and fills the complete screen.
but i want my tint2-bar always to be present.
hmm... how can i adjust that?

thanks in advance!

Pancakes
1 cup all-purpose flour, 2 eggs, 1 cup of  milk, 3 tbs water, 1-2 tsp of vanilla extract, 1/2 cup of sugar, 1/2 apple, few grains of salt
Preheat your pan or griddle to about medium heat. Slowly combine the wet ingredients to the dry ingredients, work in sliced apple. Each pancake should take about a minute or so on each side. Serve with plum jam, maple syrup, or powdered sugar

Re: Tint2 Help

beadmaze wrote:

hello there,
i've replaced my tint2-config with the one provided here:
http://crunchbanglinux.org/forums/post/109100/#p109100
which is really very nice, me thinks.

however, my problem is that when i maximize a window/browser/programm it overlapps the tint2-bar completely and fills the complete screen.
but i want my tint2-bar always to be present.
hmm... how can i adjust that?

thanks in advance!

OpenBox Configuration Manager:

obconf

Margins > set the Bottom to 30 (or what you need)

Re: Tint2 Help

yessssss, that's it...
thank you so much sector11 for this nice setup & help!
lovely
smile

Pancakes
1 cup all-purpose flour, 2 eggs, 1 cup of  milk, 3 tbs water, 1-2 tsp of vanilla extract, 1/2 cup of sugar, 1/2 apple, few grains of salt
Preheat your pan or griddle to about medium heat. Slowly combine the wet ingredients to the dry ingredients, work in sliced apple. Each pancake should take about a minute or so on each side. Serve with plum jam, maple syrup, or powdered sugar

Re: Tint2 Help

beadmaze wrote:

yessssss, that's it...
thank you so much sector11 for this nice setup & help!
lovely
smile

You are welcome.  Glad it worked!

Re: Tint2 Help

beadmaze wrote:

hello there,
i've replaced my tint2-config with the one provided here:
http://crunchbanglinux.org/forums/post/109100/#p109100
which is really very nice, me thinks.

however, my problem is that when i maximize a window/browser/programm it overlapps the tint2-bar completely and fills the complete screen.
but i want my tint2-bar always to be present.
hmm... how can i adjust that?

thanks in advance!

Another solution is editing the tint2rc file
under panel you should find these two options:
(quoted from here http://code.google.com/p/tint2/wiki/Configure)

panel_layer = bottom,normal,top : Puts tint2 into the bottom/normal/top layer. Default is the bottom layer, but for real transparency normal or top layer may be a nice alternative.

strut_policy = follow_size/minimum/none : STRUTs are used by the window manager to decide the size of maximized windows. Should the 'maximized windows' follow tint2 size (follow_size) or use the minimum size (minimum), or use the screen size (none). minimum option is interresting when used with autohide_height parameter.

so if you just want to make the panel sit there, with no windows overlapping it, you can set it to:

panel_layer = top
strut_policy = follow_size

The other options can be nice if you use autohide, but otherwise are probably not worth it.

Last edited by bobrossw (2011-03-03 04:41:51)

Re: Tint2 Help

bobrossw wrote:

The other options can be nice if you use autohide, but otherwise are probably not worth it.

Oh I gotta try some of those too.  smile
Thank you!

Last edited by Sector11 (2011-03-03 12:20:58)

Re: Tint2 Help

Hey guys. Quite enjoying #!. I like the minimalist concept behind it. smile

However I'm having issues with tint2 - it appears to either die or autohide on login. I suspect it's not autohiding due to the config set to "autohide = 0", but I'm not sure what the issue could be. I can run it and console it open, but it never seems to stay for very long.

I'm running dual monitors, if that helps. Any ideas? Thanks.

Re: Tint2 Help

@Historic just a guess, because we really don't have much info to go on:
in your autostart.sh - where it says "tint2" is there an & after it? -if not, there should be.

tint2 &

if you run tint2 from console, it will only stay running as long as your console is open, unless you start it with "tint2 &"
if you run it from alt-f2, it shouldn't matter...
hope that works!