You are not logged in.

#101 2013-10-30 10:23:43

Lolostudio
Member
From: France
Registered: 2013-03-06
Posts: 16

Re: bar - Lightweight xcb-based bar

Hurray, that was it smile
Shame on me, I just didn't move again the bar binary, once compiled, to my $path... Well, I don't really get why it worked with startx and not SLiM since it shouldn't have worked at all but, he, now it's fine smile

Offline

#102 2013-11-02 15:02:05

F34R
Member
From: /dev/loliland
Registered: 2012-02-05
Posts: 238

Re: bar - Lightweight xcb-based bar

Is this bug or something else ?

QsUJAuq.png

Offline

#103 2013-11-04 11:41:32

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

Re: bar - Lightweight xcb-based bar

Definitely not a feature, please post your config.h to help troubleshooting

Offline

#104 2013-11-07 13:35:34

F34R
Member
From: /dev/loliland
Registered: 2012-02-05
Posts: 238

Re: bar - Lightweight xcb-based bar

TheLemonMan wrote:

Definitely not a feature, please post your config.h to help troubleshooting

Definetly, i back to terminus font from gohu and be all right.

Offline

#105 2014-01-25 20:03:48

Ψ ™
Member
Registered: 2014-01-23
Posts: 4

Re: bar - Lightweight xcb-based bar

I am trying to use Ohsnap font (https://bbs.archlinux.org/viewtopic.php?id=130562) icons, but all I get is an empty square. Standard characters (letters, numbers, symbols) seem to be working, but as soon as I enter the icon zone .. it fails.

Is there anything I am missing?

So far I have tried the following:

echo -e "\uA0" | bar -p
echo -e "\xA0" | bar -p

Note: icons do work in urxvt. Both (urxvt and bar) have been set to use the same font.

Update: tried tamsynmod (https://aur.archlinux.org/packages.php?ID=53507) as well and nothing changed.

Last edited by Ψ ™ (2014-01-26 15:54:18)

Offline

#106 2014-01-26 12:15:12

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

Re: bar - Lightweight xcb-based bar

Fixed! That was due to a silly error in the code, a really silly one...

Offline

#107 2014-01-26 19:22:24

Ψ ™
Member
Registered: 2014-01-23
Posts: 4

Re: bar - Lightweight xcb-based bar

Thank you! It works now. smile

Offline

#108 2014-01-26 21:59:32

el mariachi
Member
Registered: 2007-11-30
Posts: 587

Re: bar - Lightweight xcb-based bar

is anyone using bar with dwm-like titles? I'm looking for a working skeleton to switch from dzen2 in my monsterwm

Offline

#109 2014-01-26 22:57:51

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,440
Website

Re: bar - Lightweight xcb-based bar

I've got a python status bar that I coded to use with monsterwm and bar. It will show monsterwm's desktop status and could easily be extended to include window titles from c00kie's window titles branch. I'll post it for you when I get back to my computer. I haven't put it out on github yet.... it was more a learning project and scratching my own itch :-)

Scott

Edit: Here is the Github link. I forgot I actually had posted it to Github...just haven't worked on it in awhile smile I'm not sure if that's something like what you were looking for or not. In any case, if anyone else cares to test it out, I'd love some feedback.

Last edited by firecat53 (2014-01-27 04:55:35)

Offline

#110 2014-01-27 11:23:22

el mariachi
Member
Registered: 2007-11-30
Posts: 587

Re: bar - Lightweight xcb-based bar

It seems very interesting firecat53, thanks! On the down-side, it's not working.. probably something on my end.

Traceback (most recent call last):
  File "/usr/bin/multistatus", line 82, in <module>
    Statusbar().run()
  File "/usr/bin/multistatus", line 78, in run
    self._write_output()
  File "/usr/bin/multistatus", line 70, in _write_output
    self.bar.stdin.write(out.encode())
BrokenPipeError: [Errno 32] Broken pipe

Offline

#111 2014-01-27 14:49:47

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,440
Website

Re: bar - Lightweight xcb-based bar

Ugh, well, why don't you post the config file and how you are starting monsterwm and multistatus in a new thread (so we don't clutter this one) and we'll figure it out. Make sure you have the 'monsterwm.fifo' established in /tmp. Try disabling all the plugins except the date in the config file and re-enabling them one at a time until it breaks. As far as I know, you're the first guinea pig to try it out smile Unfortunately I didn't build in a whole lot of error checking yet...

Thanks,
Scott

Offline

#112 2014-01-27 18:35:00

el mariachi
Member
Registered: 2007-11-30
Posts: 587

Re: bar - Lightweight xcb-based bar

sure wink
in the meantime I've wasted some time around some scripts.  bar shows up where it should, but totally empty... my bash is still at the "copy&paste" level, so I don't know what can be wrong. some tips?
http://hastebin.com/lavekunuti.pl

Offline

#113 2014-01-27 21:21:48

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,440
Website

Re: bar - Lightweight xcb-based bar

First you need to check that bar is working:

echo "\cHI" | bar -pf

If it is, you should probably continue this in the monsterwm thread smile If not, post your bar config.h. I'm assuming you've acquired your script from here?

Scott

Last edited by firecat53 (2014-01-27 21:23:10)

Offline

#114 2014-01-27 22:22:57

el mariachi
Member
Registered: 2007-11-30
Posts: 587

Re: bar - Lightweight xcb-based bar

that just prints a nice monolithic bar in my screen, no text whatsoever smile

http://hastebin.com/nafuvefamo.vala -> config.h

where should I open a thread about your panel? wouldn't it better if you made a "community contribution" and then disscuss it there?

Last edited by el mariachi (2014-01-27 22:23:52)

Offline

#115 2014-02-05 14:44:17

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

Re: bar - Lightweight xcb-based bar

Any xinerama user willing to test this branch before committing it ? smile

Offline

#116 2014-02-05 17:31:38

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

Re: bar - Lightweight xcb-based bar

It needs the following patch:

diff --git a/bar.c b/bar.c
index 690881c..1ba38de 100644
--- a/bar.c
+++ b/bar.c
@@ -431,7 +431,12 @@ init (void)
             screens[i].window = create_window(root, screens[i].x, y, screens[i].width, BAR_HEIGHT, scr->root_visual);
         }
 
-        left_offset -= screens[i].width;
+        if (left_offset > 0) {
+            left_offset -= screens[i].width;
+            if (left_offset < 0)
+                left_offset = 0;
+        }
+        xcb_xinerama_screen_info_next (&xinerama_iter);
     }
 
     free(xinerama_reply);

Also, the screen order is reversed from what it was before. This isn't really an issue because, as far as I can tell, the screen ordering is consistent but arbitrary.


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

Offline

#117 2014-02-05 22:25:52

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

Re: bar - Lightweight xcb-based bar

I felt a loop going from 0 to N was easier to understand heh smile Also, fixed the code, tell me if works fine with big offsets and different width combos smile

Offline

#118 2014-02-19 16:57:18

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

Re: bar - Lightweight xcb-based bar

I bet you're not ready to handle all the awesomeness that the 'wip' branch brings to bar!
Before this goes into master and the release 1.0 is tagged I want to hear from you guys if the new syntax is awesome enough for your needs, if the documentation is enough, if the RandR/Xinerama support is amusing as expected and such smile

Offline

#119 2014-02-21 06:35:14

Shinryuu
Member
From: 俺のコスモス
Registered: 2010-02-27
Posts: 338

Re: bar - Lightweight xcb-based bar

Hey, thanks for the updates smile I have a dual monitor setup (1280x1024 & 1920x1080) and I have a problem with offset and/or bar width settings. I tried both wip and xinerama-fix branches with vanilla configurations but I changed following settings:

/* The width of the bar. Set to -1 to fit screen */
#define BAR_WIDTH  1920
/* Offset from the left. Set to 0 to have no effect */
#define BAR_OFFSET 1280

I also tried to use BAR_WIDTH -1 but there was no difference, am I missing something?

Also here's a picture in action:
qxjgpb.png

Last edited by Shinryuu (2014-02-21 06:36:13)

Offline

#120 2014-02-21 09:27:20

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

Re: bar - Lightweight xcb-based bar

I just got rid of the 'xinerama-fix' branch, the 'wip' branch is the future smile
The wip branch got rid of the config.h thing, now everything is dynamic!
The configurable X offset is coming back big_smile

Offline

#121 2014-02-22 10:34:51

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

Re: bar - Lightweight xcb-based bar

^ will the wip also bring in clickable areas ?

Last edited by easysid (2014-02-22 17:58:54)

Offline

#122 2014-02-22 13:48:08

Shinryuu
Member
From: 俺のコスモス
Registered: 2010-02-27
Posts: 338

Re: bar - Lightweight xcb-based bar

Hey, I noticed that if you use "-g 1920x14+1280" you can't see centered and right padded things at all. Works fine if I just spawn bar in my left monitor with "-g 1280x14"

Here are the explanation shots:
1280x14: http://a.pomf.se/ipeglw.png
1920x14+1280: http://a.pomf.se/hzitcn.png

Offline

#123 2014-02-24 10:47:24

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

Re: bar - Lightweight xcb-based bar

@easysid I'll start working on that once Shinryuu is satisfied heh. It's just a matter of merging some code "u-ra" sent big_smile

Anyway, the old boring bar alpha is gone, if you use a compositor manager you can freely use colors in ARGB format! big_smile
The result is more or less http://a.pomf.se/tjosxe.png

Offline

#124 2014-02-24 10:55:39

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: bar - Lightweight xcb-based bar

TheLemonMan wrote:

Anyway, the old boring bar alpha is gone, if you use a compositor manager you can freely use colors in ARGB format! big_smile
The result is more or less http://a.pomf.se/tjosxe.png

Awesome, thanks!

On a kind of related note: You don't intend to add Pango support, do you? smile

Last edited by Runiq (2014-02-24 10:55:51)

Offline

#125 2014-02-24 11:49:53

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

Re: bar - Lightweight xcb-based bar

Err, nope. I really like bitmap fonts heh

Offline

Board footer

Powered by FluxBB