Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntaxes #35

Open
T0MuX opened this issue May 22, 2016 · 8 comments
Open

Syntaxes #35

T0MuX opened this issue May 22, 2016 · 8 comments

Comments

@T0MuX
Copy link

T0MuX commented May 22, 2016

Hi ! First, I thank you a lot for what you're doing with tint3, very beautyful fork of tint2 ! A lot of potential !!

I have some questions about the syntax in the tint3rc config file. I want to do some things but I don't know how :

  • how to put an image somewhere in the bar ?
  • how can I create a launcher ?
  • can we pipe a shell command like conky do ? if yes, how ?
  • can we add a systray and, again, if yes how ?
  • I want to increase the size of the active window's title but I don't know how. It's truncated you know (see this : http://www.picpaste.de/Screenshot_20160522-123436.png)

I don't know if what I ask is possible, but if it is I thank you a lot again !

Bye

T0MuX

@tmathmeyer
Copy link
Owner

Firstly, thanks for the compliments, but tint3 isn't a fork of tint2, there is not shared code.
as for your points:

  • images are not supported in this bar (yet!)
  • launchers and bars are separate. I use dmenu, but there are plenty of others you can use
  • there is an option to have a shell command run and its output displayed. see the configuration.md file for how that works.
  • like the launcher, the systray is separate. I recomend using stalone tray for that.
  • your screenshot 404s.

@T0MuX
Copy link
Author

T0MuX commented May 24, 2016

Hi, thank you for your fast answer. And sorry for my english, i'm french.

Okay I though it was a fork, so nice project !

  • For images, okay I will wait so :)
  • Are you telling to me I will never see any icons in tint3 ?
  • Okay I will take a look into configuration.md
  • Are you also telling me I will never have a systray in my tint3 bar ? However it's sooo usefull, you know, the dropbox icon, deluge, clip it etc....
  • Don't worry for the 404 on the screen it's not big deal. I explain : my tint3 is like that :

1 2 3 4 5 6_______________Title of the curre...____________94% ___Tue. 24.05__23:56

And I want it like that :
1 2 3 4 5 6______Title of the current window, not truncated____94%___Tue. 24.05__23:56

Ideally with Launchers just after desktops and a Systray just before the battery :p
but you seem to told me it will never be dev. Am i Right ?

@tmathmeyer
Copy link
Owner

In terms of launchers, I thought you meant a search-style launcher (dmenu, rofi, lighthouse, etc) rather than a click-to-launch type. I suppose if you wanted that you could make a block with a shell execute on click. Once Image support is added, you could theoretically make an image that when clicked would execute something.

Like I mentioned in the previous post, a good systray is stalonetray (http://stalonetray.sourceforge.net/). I definitely believe that it is more appropriate to keep it separate from a bar.

The truncation is deliberate, but can be changed if you're willing to recompile tint3 yourself. I may make this configurable soon. If you would like to change it, check out lines 24 and 25 in src/source/draw.c, where two variables are defined. making these numbers larger should give you the effect you want.

@T0MuX
Copy link
Author

T0MuX commented May 26, 2016

I thank you for the draw.c trick to change the max lengt of active window's title, it worked like a charm :)
For the search-style launcher, it would be a great idea but I would like to have some icons (launchers) like we can do in any panel. For now, I use gmrun to run everything lol. I was thinking about Synapse but I think it's not really homogeneous with my BSPWM environement.

For the systray, I'm testing stalonetray but little complicated to configure. I can't change the default position, it opens everytime on the top-left edge -_-
By the way, can you give me your opinion, why do you think it's not a good idea to integrate a systray to a bar ? before I was using tint2 (native systray support) and I think it's really cool and simple to use, simple to configure like that. Is it for development reason ? too complicated to do ? or simply your opinion, your preference ? Your opinion interest me :)

@T0MuX
Copy link
Author

T0MuX commented May 29, 2016

Hi, I report an issue (or maybe I do it wrong) with the shell block.

I added this to my tint3rc :
[shelltest]
id shell
echo "test eee "

and I added "shelltest" in the [[bar]] block.
It work fine, "test eee " appear well... but... with a special char I can't remove oO. See this :
http://img11.hostingpics.net/pics/890508Screenshot20160529182451.png

@tmathmeyer
Copy link
Owner

I can't reproduce that (maybe you have a weird font / terminal putting in weird characters)
I would recommend using "text" rather than "shell though"

[shelltest]
id text
source test eee 

@T0MuX
Copy link
Author

T0MuX commented May 31, 2016

Oh thank you for your answer but this is not what i'm looking for. I used "echo" command just to train myself to pipe command's return into tint3 ^^
I'm already using "id text" for displays my nick (just for the look) and it's working fine ;)

Anyway, I just tried with another font (Liberation instead of Terminus) and I have the same issue : a weird char appears just at the end. Can you try with Liberation font ? And you tell me if you have the same

@T0MuX
Copy link
Author

T0MuX commented Oct 27, 2021

Hi, this seems to be, a bit, abandonned lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants