You are not logged in.
^ 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
Desktop screenshots :: Origami :: github
Offline
^ 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)
Desktop screenshots :: Origami :: github
Offline
You and I both
You should change the alignment before opening a clickable area
echo "%{cA:echo hello}text here%{A}" | ./bar -p
from the wiki
%{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)
Desktop screenshots :: Origami :: github
Offline
That was fast !!. Thanks a bunch.
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)
Desktop screenshots :: Origami :: github
Offline
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
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)
Desktop screenshots :: Origami :: github
Offline
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?
Last edited by Ploppz (2014-03-12 13:33:55)
Offline
^ Should be possible using the wip branch.
Last edited by easysid (2014-03-12 16:14:42)
Desktop screenshots :: Origami :: github
Offline
Try editing "#define BAR OPACITY" in config.h. I set mine to 0.9 and it worked with compton.
Offline
easyid: Oh, awesome!
So in the wip version you don't have a config file anymore?
Offline
no . Everything can be configured at runtime. Also includes clickable areas.
As for stable, RobbieWT's answer should do it.
Desktop screenshots :: Origami :: github
Offline
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
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
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-*-*-*-*-*-*-*'
Offline
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
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
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