You are not logged in.

#26 2012-07-23 20:17:09

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: bar - Lightweight xcb-based bar

What you want is tray. Check out trayer.

Offline

#27 2012-07-23 20:23:46

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: bar - Lightweight xcb-based bar


.:[ git me! ] :.

Offline

#28 2012-07-23 20:58:29

kalle97
Member
Registered: 2012-07-18
Posts: 80

Re: bar - Lightweight xcb-based bar

Thanks! smile

Offline

#29 2012-07-23 21:46:39

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

Re: bar - Lightweight xcb-based bar

Šaran wrote:

EDIT: Would it be hard to make "overline" instead of underline?

I like the idea smile What about making the underlines on the top of the bar when its positioned in the bottom of the screen ?

Offline

#30 2012-07-24 08:35:54

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: bar - Lightweight xcb-based bar

I think it would look better if underlines were at the screen edge, eg. on top when bar is on top and current behaviour when it's on bottom.

Offline

#31 2012-07-24 11:43:02

Gamer
Member
Registered: 2012-07-23
Posts: 17

Re: bar - Lightweight xcb-based bar

Does it support UTF-8 ?


Real men don't use backups, they post their stuff on a public ftp server and let the rest of the world make copies.
- Linus Torvalds

Offline

#32 2012-07-24 12:50:12

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

Re: bar - Lightweight xcb-based bar

Gamer wrote:

Does it support UTF-8 ?

Sure.

Šaran wrote:

I think it would look better if underlines were at the screen edge, eg. on top when bar is on top and current behaviour when it's on bottom.

I'll make it an option then. (As always, mind adding it as a github ticket so i don't forget it ? smile

Offline

#33 2012-07-25 11:48:47

DoctorSamulus
Member
Registered: 2010-11-04
Posts: 53

Re: bar - Lightweight xcb-based bar

When bar displays the characters using any font I try they become too spaced apart and off-centered. Looking at other people's screenshots of bar their fonts look fine, here is an example of what I mean:

Ia68g.png

The top is bar, the bottom is dmenu. My font string that I pass to dmenu is identical to the one I put in bar's config.h so I don't know why it isn't spaced properly. I have a small feeling that the launcher script I'm using may be inserting extra whitespace or something causing the effect but then again the spaces look too small to be white space.. I'm a bash noob but I'm learning tongue Legitimate bug or my fault?

Offline

#34 2012-07-25 15:10:58

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

Re: bar - Lightweight xcb-based bar

Šaran wrote:

I think it would look better if underlines were at the screen edge, eg. on top when bar is on top and current behaviour when it's on bottom.

Latest commit adds toggleable overlines/underlines smile

DoctorSamulus wrote:

The top is bar, the bottom is dmenu. My font string that I pass to dmenu is identical to the one I put in bar's config.h so I don't know why it isn't spaced properly. I have a small feeling that the launcher script I'm using may be inserting extra whitespace or something causing the effect but then again the spaces look too small to be white space.. I'm a bash noob but I'm learning  Legitimate bug or my fault?

I assumed that all the fonts were monospaced so i used the same width for all the chars. This is now fixed in the latest commit.

Offline

#35 2012-07-25 17:50:35

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: bar - Lightweight xcb-based bar

Great, thanks! smile
But, here is a font size related bug. Ohsnap size 13 doesn't get overlined, but it does get underlined.
Size 12 solves it.

Offline

#36 2012-07-25 18:01:57

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

Re: bar - Lightweight xcb-based bar

Šaran wrote:

Great, thanks! smile
But, here is a font size related bug. Ohsnap size 13 doesn't get overlined, but it does get underlined.
Size 12 solves it.

Duh? Can you upload an image ?

Offline

#37 2012-07-25 18:13:20

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: bar - Lightweight xcb-based bar

http://ompldr.org/vZXY1eg  - Font size 12
http://ompldr.org/vZXY2MA  - Font size 13
But it will get underlined with both sizes.
This makes no difference for me, just wanted to let you know.

Last edited by Šaran (2012-07-25 18:13:46)

Offline

#38 2012-07-25 18:21:13

DoctorSamulus
Member
Registered: 2010-11-04
Posts: 53

Re: bar - Lightweight xcb-based bar

Thanks for the fix, font displays perfectly now. I found color related bug now though ;\. When I pass the color "#393C39" (grey) as any COLOR(i) it gets incorrectly interpreted as blue ("#3986CE" according to gcolor2). Here is my config.h.

Offline

#39 2012-07-26 09:17:11

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

Re: bar - Lightweight xcb-based bar

The underline bug is fixed big_smile
The color bug might be due to the fact that Xorg has a palette for each screen and gets the nearest color if the specified one doesn't match, I'll look into it.

Offline

#40 2012-07-26 12:36:21

simon.swe
Member
From: sverige
Registered: 2012-02-26
Posts: 148
Website

Re: bar - Lightweight xcb-based bar

the latest version segfaults for me.. core dumped.
anyone else?
I will try and do again

Offline

#41 2012-07-26 12:43:10

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

Re: bar - Lightweight xcb-based bar

Show your config and input given.

Offline

#42 2012-07-28 15:39:58

Sirsurthur
Member
Registered: 2009-02-02
Posts: 114

Re: bar - Lightweight xcb-based bar

Hello !

The bar looks very good and replaces well dzen. I just wanted to know if you are planing to add a PKGBUILD on aur ?

Thanks !

Offline

#43 2012-07-29 11:00:45

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: bar - Lightweight xcb-based bar

TheLemonMan wrote:

The underline bug is fixed big_smile
The color bug might be due to the fact that Xorg has a palette for each screen and gets the nearest color if the specified one doesn't match, I'll look into it.

Thank you! And goodbye dzen! smile

Offline

#44 2012-07-30 17:10:46

kalle97
Member
Registered: 2012-07-18
Posts: 80

Re: bar - Lightweight xcb-based bar

I can't compile it on FreeBSD 9.0.

I can't put out the error messages since I don't know how to copy from urxvt(sorry). But it seems like it doesn't find XCB or something. Can someone help?

Thanks.

Offline

#45 2012-09-04 13:17:10

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

Re: bar - Lightweight xcb-based bar

There are couple of weird things I can't seem to figure out at all. Overline/underline doesn't work, it just draws a background colored line across the whole bar. Also BAR_BOTTOM doesn't seem to work until you use "bar -b" command. I can't find any errors sad

Offline

#46 2012-09-04 13:25:50

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: bar - Lightweight xcb-based bar

yep, easy fix, will send a pull request in 30secs!

edit: oh, I was late tongue

Last edited by c00kiemon5ter (2012-09-04 13:26:41)


.:[ git me! ] :.

Offline

#47 2012-09-04 13:26:56

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

Re: bar - Lightweight xcb-based bar

Shinryuu wrote:

There are couple of weird things I can't seem to figure out at all. Overline/underline doesn't work, it just draws a background colored line across the whole bar. Also BAR_BOTTOM doesn't seem to work until you use "bar -b" command. I can't find any errors sad

Fixed the bottom setting problem, it was a very silly mistake big_smile When you pop on irc ping me so we can troubleshoot the underline problem as I couldn't reproduce it here.

Offline

#48 2012-09-28 21:50:33

kalle97
Member
Registered: 2012-07-18
Posts: 80

Re: bar - Lightweight xcb-based bar

I made this script based on one of the example by c00kiemon5ter iirc:

#!/bin/bash                                                                           
                                                                                      
ff="/tmp/monsterwm.fifo"                                                              
[[ -p $ff ]] || mkfifo -m 600 "$ff"                                                   
                                                                                      
# desktop names                                                                       
ds=(" One" "Two" "Three")                                                             
# layout names                                                                        
ms=("Classic Tiling Mode" "Monocle Mode" "Buttom-stack Tiling Mode" "Grid Tiling Mode$
                                                                                      
while read -t 60 -r wmout || true; do                                                 
        if [[ $wmout =~ ^(([[:digit:]]+:)+[[:digit:]]+ ?)+$ ]]; then                  
                read -ra desktops <<< "$wmout" && unset r                             
                for desktop in "${desktops[@]}"; do                                   
                        IFS=':' read -r d w m c u <<< "$desktop"                      
                        ((c)) && fg="\\f2" i="${ms[$m]}" || fg="\\f1"                 
                        ((u)) && w+='\f5!'                                            
                        r+="$fg${ds[$d]} "                                            
                done                                                                  
                r="${r%::*}"                                                          
        fi                                                                            
        printf "\\\l%s\\\r%s\n" "$r\\c\\f1- \\f2$i\\f1 -" "\\r\\f1$(date +"%H:%M ")"  
                                                                                      
done < "$ff" | bar &                                                                  
                                                                                      
# pass output to fifo                                                                 
monsterwm > "$ff"

Can someone help me making "One Two Three" appear as only "One" for desktop 0, "Two" for desktop 1, "Three" for desktop 2 if you understand what I mean?

Thanks.

Offline

#49 2012-09-28 21:54:37

gholen
Member
From: Göteborg
Registered: 2011-07-26
Posts: 73
Website

Re: bar - Lightweight xcb-based bar

Speaking of that, how does one pipe DZEN in a good way?

Offline

#50 2012-09-29 04:03:44

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

Re: bar - Lightweight xcb-based bar

kalle97 wrote:

Can someone help me making "One Two Three" appear as only "One" for desktop 0, "Two" for desktop 1, "Three" for desktop 2 if you understand what I mean?

Thanks.

Mhh, I don't really understand your question but I noticed that you have an extra space in desktop "One".

# desktop names                                                                       
ds=(" One" "Two" "Three") 
gholen wrote:

Speaking of that, how does one pipe DZEN in a good way?

User called simon.swe has some configurations which uses dzen2, CLICK ME (github)

Last edited by Shinryuu (2012-09-29 04:09:49)

Offline

Board footer

Powered by FluxBB