You are not logged in.

#151 2014-03-16 12:21:16

enr1x
Member
From: Girona, Spain
Registered: 2006-11-09
Posts: 29

Re: bar - Lightweight xcb-based bar

TheLemonMan wrote:

Did it happen after a specific commit ?

Well, it happened after i moved from the master branch + Xft patch (https://aur.archlinux.org/packages/bar- … -bskv-git/)

TheLemonMan wrote:

Also, I can't find the typicons font anywhere, mind sending it to me to avoid blind testing ?

Sure! AUR; source at Typicons)

Offline

#152 2014-03-18 17:11:23

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: bar - Lightweight xcb-based bar

Using the wip branch. Trying to set the font using -f. I tried the name of several fonts I know I have installed, did not work. Then I tried the example on Arch wiki: #define BAR_FONT "-misc-stlarch-medium-*-normal-*-10-*-*-*-c-*-*-1","fixed" - I mean I tried -f and that string after installing stlarch-medium. No effect. How do you appropriately set the font?

Edit: Another question: How can I use terminal colours (256)?

Last edited by Ploppz (2014-03-18 17:14:35)

Offline

#153 2014-03-18 19:06:59

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: bar - Lightweight xcb-based bar

@enri1x

err, TTF fonts are not supported.

@Ploppz

xset +fp /usr/share/fonts/local
xset fp rehash

To use your terminal colors just set them in the palette, it's as easy as it sounds smile

Offline

#154 2014-03-20 15:13:39

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: bar - Lightweight xcb-based bar

TheLemonMan: I already have that (xset ---) in my .xinitrc. Maybe I am just doing it wrong. Can you give an example of a successful font setting? Say if I wanted Termsyn with the size 8.

Edit: By the way, how do you write percentage sign to bar? Neither of these work: echo "34\\%, 34\%, 34%" | bar -p

Last edited by Ploppz (2014-03-20 15:18:42)

Offline

#155 2014-03-20 15:58:44

enr1x
Member
From: Girona, Spain
Registered: 2006-11-09
Posts: 29

Re: bar - Lightweight xcb-based bar

> err, TTF fonts are not supported.

Oops, forgot about that. Cheers. Keep up the good work!

Offline

#156 2014-03-21 20:12:09

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: bar - Lightweight xcb-based bar

Sorry, but I really don't get any fonts to work. Is there anything I can do in an attempt to fix that?

Offline

#157 2014-03-21 20:56:34

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: bar - Lightweight xcb-based bar

Percentage sign is obtained by pretending a % to the sign.
Do the fonts work for other apps?

Offline

#158 2014-03-21 21:10:39

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: bar - Lightweight xcb-based bar

Ah, thanks.
The fonts do work for other apps. Is this the right way to do it? bar -f "Termsyn", for the font Termsyn.

Edit: Okay, it did work when I did  -*-termsyn-medium-r-normal-*-11-*-*-*-*-*-iso8859-2 - however, it's not displaying unicode letters currently. I am using Termsyn in termite and termite shows me unicode letters. I am guessing it has fallback font.

Edit2: I found the fallback font (-Misc-Fixed-Medium-R-Normal--10-100-75-75-C-60-ISO10646-1). Solved.

Last edited by Ploppz (2014-03-21 21:55:36)

Offline

#159 2014-03-24 18:46:49

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: bar - Lightweight xcb-based bar

The 1.0 version is now live smile
Go get it while it's hot! Please read the readme/man page, TTF fonts are still not supported but it offers cool transparencies, multimonitor support and complete runtime customization along with a shitload of bugfixes.

Offline

#160 2014-03-29 14:10:08

enr1x
Member
From: Girona, Spain
Registered: 2006-11-09
Posts: 29

Re: bar - Lightweight xcb-based bar

Good job! Been using it for a while and it's working great. Can't wait for TTF fonts smile!

Offline

#161 2014-03-31 14:36:07

tonk
Member
Registered: 2013-05-15
Posts: 38

Re: bar - Lightweight xcb-based bar

Thanks for the update. Everything works fine (fonts,colors,alignment..) but commands don't get executed. e.g.

echo '%{A:scrot:}asdf%{A}' | bar -p

i can see the output scrot on click, but it doesn't get executed(make a screenshot in this example). Do i miss something?

Offline

#162 2014-03-31 14:49:22

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: bar - Lightweight xcb-based bar

tonk wrote:

Thanks for the update. Everything works fine (fonts,colors,alignment..) but commands don't get executed. e.g.

echo '%{A:scrot:}asdf%{A}' | bar -p

i can see the output scrot on click, but it doesn't get executed(make a screenshot in this example). Do i miss something?

Yes. Commands are no longer executed. `{%A:something:}asdf%{A}` just prints something to stdout. This helps prevent potential deadlocks (and can also be used as a security measure). To get the old behavior, you have to execute the strings bar prints out:

echo '%{A:scrot:}asdf%{A}' | bar -p | while read line; do eval "$line"; done

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#163 2014-03-31 14:58:11

tonk
Member
Registered: 2013-05-15
Posts: 38

Re: bar - Lightweight xcb-based bar

Stebalien wrote:

Yes. Commands are no longer executed. `{%A:something:}asdf%{A}` just prints something to stdout. This helps prevent potential deadlocks (and can also be used as a security measure). To get the old behavior, you have to execute the strings bar prints out:

echo '%{A:scrot:}asdf%{A}' | bar -p | while read line; do eval "$line"; done

Ah thanks. I overlooked the output part on the github page.

OUTPUT
Clicking on an area makes bar output the command to stdout, followed by a newline, allowing the user to pipe it into a script, execute it or simply ignore it. Simple and powerful, that's it.

Last edited by tonk (2014-03-31 15:01:23)

Offline

#164 2014-04-26 10:56:34

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

Re: bar - Lightweight xcb-based bar

I can't set the color of underlines. 

bar -u 2 -U '#101010' -p &

does not work, the underline picks up the foreground color. Can someone help? Thanks.

Offline

#165 2014-04-26 15:04:57

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: bar - Lightweight xcb-based bar

Using compton, it seems I can only set either fully transparent background or fully opaque. Only #00<any very dark colour like 000001> works for setting transparent background while others set the background fully opaque. Isn't semi-transparency implemented?

Offline

#166 2014-04-26 17:57:33

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: bar - Lightweight xcb-based bar

@Totolotto:
That's not how bar is meant to be used, please refer to the documentation or existing examples.

@Ploppz
Semi transparency works fine, it's just not as transparent as expected heh blame xorg for that

Offline

#167 2014-04-26 22:57:04

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

Re: bar - Lightweight xcb-based bar

@LemonMan I really appretiate and admire the work you have done with bar (...), but could you be more specific? Thank you.

Last edited by totolotto (2014-04-29 08:05:06)

Offline

#168 2014-04-26 23:09:55

o_caino
Member
Registered: 2013-06-06
Posts: 166

Re: bar - Lightweight xcb-based bar

@totolotto
This is a minimal example of underlines.

echo '%{U#FF6FFF00}%{+u}foo%{-u}' | bar -p

Edit: changed color to green tongue

Last edited by o_caino (2014-04-26 23:21:53)

Offline

#169 2014-04-27 05:57:05

totolotto
Member
From: Hungary
Registered: 2012-11-13
Posts: 114

Re: bar - Lightweight xcb-based bar

o_caino wrote:

@totolotto
This is a minimal example of underlines.

echo '%{U#FF6FFF00}%{+u}foo%{-u}' | bar -p

Edit: changed color to green tongue

Many thanks!

Offline

#170 2014-04-27 10:11:44

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: bar - Lightweight xcb-based bar

TheLemonMan wrote:

@Ploppz
Semi transparency works fine, it's just not as transparent as expected heh blame xorg for that

For me, it's really either or:

Alpha = 50
ohtvkx.png

Alpha = 10

hqnloe.png

Alpha = 0

bjqoab.png

Offline

#171 2014-04-27 10:24:58

o_caino
Member
Registered: 2013-06-06
Posts: 166

Re: bar - Lightweight xcb-based bar

Try the same with a light background.

Offline

#172 2014-04-27 14:04:43

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: bar - Lightweight xcb-based bar

Just the same result.

Offline

#173 2014-04-27 17:40:03

o_caino
Member
Registered: 2013-06-06
Posts: 166

Re: bar - Lightweight xcb-based bar

I get different results. Using the command you used for Alpha=50
dark background
otquxa.png
light background
dqnslr.png

TheLemonMan wrote:

[...] blame xorg for that

Offline

#174 2014-04-28 20:31:16

Ploppz
Member
Registered: 2013-09-14
Posts: 311

Re: bar - Lightweight xcb-based bar

Well, for example transset-df works just fine for all colours AFAIK, so is it really just xorg's fault?

Offline

#175 2014-04-28 21:58:28

o_caino
Member
Registered: 2013-06-06
Posts: 166

Re: bar - Lightweight xcb-based bar

forchheimer.se/transset-df wrote:

transset-df is not a program that creates transparency, it's a program that sets properties for windowses. These properties must then be supported by the underlaying X-server.

If it works with other windows I guess it should work for bar too. btw, if you're using compton there's already compton-trans to set transparency smile

Offline

Board footer

Powered by FluxBB