You are not logged in.

#126 2014-02-26 09:10:02

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

Re: bar - Lightweight xcb-based bar

Clickable areas are in! Check out the man page or the github wiki and tell me if it works fine with multi-monitor setups big_smile

Offline

#127 2014-02-26 15:01:30

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: bar - Lightweight xcb-based bar

^ having trouble with clickable areas. Can't seem to get it to work.

 echo "%{A:echo hello}%{c}text here%{A}" | ./bar -p 

gives no response

Offline

#128 2014-02-26 15:03:34

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

Re: bar - Lightweight xcb-based bar

You should change the alignment before opening a clickable area

 echo "%{cA:echo hello}text here%{A}" | ./bar -p 

Offline

#129 2014-02-26 15:25:36

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: bar - Lightweight xcb-based bar

^ no luck ...

 echo "%{A:echo hello}text here%{A}" | ./bar -p 

doesn't print anything to terminal on click

Last edited by easysid (2014-02-26 15:26:15)

Offline

#130 2014-02-26 15:27:52

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

Re: bar - Lightweight xcb-based bar

You're missing the closing :

Offline

#131 2014-02-26 15:36:21

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: bar - Lightweight xcb-based bar

You and I both tongue

TheLemonMan wrote:

You should change the alignment before opening a clickable area

 echo "%{cA:echo hello}text here%{A}" | ./bar -p 

from the wiki

wiki@bar-wip wrote:

%{A:reboot} Click here to reboot %{A}

Got it.

echo "%{c}%{A:echo hello:}text here%{A}" | ./bar -p 

Works ! Thanks

But

echo "%{A:echo hello:}text here%{A}" | ./bar -p
                        OR
echo "%{l}%{A:echo hello:}text here%{A}" | ./bar -p

doesnt ???

Last edited by easysid (2014-02-26 15:37:12)

Offline

#132 2014-02-26 15:46:58

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

Re: bar - Lightweight xcb-based bar

Hah you're right. I've just fixed the code and the wiki/manpage smile

Offline

#133 2014-02-26 16:11:28

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: bar - Lightweight xcb-based bar

That was fast !!. Thanks a bunch. smile
All working now.

 echo "%{l} %{A:echo left:}left area%{A} %{c} %{A:echo center:}centre area%{A} %{r}%{A:echo right:}right area%{A}" | ./bar -p

great job.

Just a question: Why is the closing ':' required? Shouldn't the closing '}' do the job?

Last edited by easysid (2014-02-26 16:13:58)

Offline

#134 2014-02-26 16:50:52

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

Re: bar - Lightweight xcb-based bar

easysid wrote:

Just a question: Why is the closing ':' required? Shouldn't the closing '}' do the job?

Because it's not required to have a single command per block, you can have something like

%{cA:echo hello:Bbrightyellow Ucyan +u}Hello%{-u}

Offline

#135 2014-02-27 16:29:24

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: bar - Lightweight xcb-based bar

EDIT: Post deleted. Was a scripting error. Not related to bar. Sorry for the trouble
Script I was using: http://pastebin.com/mViBasRt

Last edited by easysid (2014-02-28 09:02:23)

Offline

#136 2014-03-12 12:37:56

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

Re: bar - Lightweight xcb-based bar

Is there any way to only make the background transparent? I would like only the text to be displayed.
Edit: Doesn't look possible atm. But could you look into it please? smile

Last edited by Ploppz (2014-03-12 13:33:55)

Offline

#137 2014-03-12 16:13:38

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: bar - Lightweight xcb-based bar

^ Should be possible using the wip branch.

Last edited by easysid (2014-03-12 16:14:42)

Offline

#138 2014-03-12 16:27:22

RobbieWT
Member
Registered: 2011-04-15
Posts: 32

Re: bar - Lightweight xcb-based bar

Try editing "#define BAR OPACITY" in config.h. I set mine to 0.9 and it worked with compton.

Offline

#139 2014-03-12 17:37:19

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

Re: bar - Lightweight xcb-based bar

easyid: Oh, awesome!

So in the wip version you don't have a config file anymore?

Offline

#140 2014-03-12 17:52:21

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

Re: bar - Lightweight xcb-based bar

no smile . Everything can be configured at runtime. Also includes clickable areas.
As for stable, RobbieWT's answer should do it.

Offline

#141 2014-03-12 20:35:32

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

Re: bar - Lightweight xcb-based bar

You really don't like readmes, don't you?
if a compoaitor is running then you can specify colors as #AARRGGBB where AA is the value of the alpha channel.
The config.h file is completely deprecated in the wip branch.

Offline

#142 2014-03-13 22:48:38

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

Re: bar - Lightweight xcb-based bar

As suggested by Stebalien bar now just prints out the command associated with the clicked area instead of executing it directly. Just add something like

while read line; do eval "$line"; done

to your script and you're good to go!

Offline

#143 2014-03-14 21:42:36

Shinryuu
Member
From: /dev/urandom
Registered: 2010-02-27
Posts: 339

Re: bar - Lightweight xcb-based bar

Updated bar this evening to test commands but I ran into a font related problem! There are some random black lines trying to molest my soul.

bar -g x16+1280 -B "#1f1f22" -F '#a8a8a8' -f '*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*,-*-cure.se-medium-r-*-*-11-*-*-*-*-*-*-*'

ckuftb.png

Offline

#144 2014-03-15 11:24:16

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

Re: bar - Lightweight xcb-based bar

Hrm, cannot reproduce it. Did it happen on older revisions too ?

Offline

#145 2014-03-15 12:39:27

Shinryuu
Member
From: /dev/urandom
Registered: 2010-02-27
Posts: 339

Re: bar - Lightweight xcb-based bar

Mhh, it appeared after the git fetch update I did yesterday. Interestingly enough it only happens in the middle when center align is used. if I put the text in the left or right it works just fine.

Here's the whole script if you can find something fishy from it (line 76 is the line for the middle)
http://sprunge.us/NjKj (panel.sh)

Offline

#146 2014-03-15 14:09:51

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

Re: bar - Lightweight xcb-based bar

Fixed in the latest commit smile

Offline

#147 2014-03-15 19:37:55

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

Re: bar - Lightweight xcb-based bar

I can't get the two fonts to display at the same time. I am using this selector:

-misc-typicons-medium-r-normal--0-0-0-0-p-0-iso10646-1,-misc-dejavu sans-medium-r-normal--0-0-0-0-p-0-iso10646-1

and I can't get the characters that should be rendered with the second font. Inverting the order of the fonts does the opposite (I get normal text, but no typicons). Am I doing anything wrong with the selector? By the way, great work on the application! Cheers.

Last edited by enr1x (2014-03-15 19:42:15)

Offline

#148 2014-03-16 00:26:40

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

Re: bar - Lightweight xcb-based bar

It's very likely that both fonts cover the same range of characters.

Offline

#149 2014-03-16 00:47:00

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

Re: bar - Lightweight xcb-based bar

TheLemonMan wrote:

It's very likely that both fonts cover the same range of characters.

Actually I have been using, before the wip branch of bar, the Xft patch on AUR, and the behaviour was the one I wanted. I can take a screenshot of the expected behaviour if you wish.

Offline

#150 2014-03-16 08:59:28

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

Re: bar - Lightweight xcb-based bar

Did it happen after a specific commit ?
Also, I can't find the typicons font anywhere, mind sending it to me to avoid blind testing ?

Offline

Board footer

Powered by FluxBB