You are not logged in.

#1 2014-06-26 06:50:14

quiv
Member
Registered: 2014-02-20
Posts: 22

[SOLVED]BAR won't show up

I have been trying for a few hours now to get BAR to show up when using bspwm. I followed this guide to set it up. It looks like bar is actually there as my windows take the height of the bar into consideration when tiling, however I can't see it!

~/.config/bspwm/bspwmrc

#! /bin/sh

bspc config border_width        2
bspc config window_gap         12

bspc config split_ratio         0.52
bspc config borderless_monocle  true
bspc config gapless_monocle     true

bspc monitor -d I II III IV V VI VII VIII IX X

bspc rule -a Gimp desktop=^8 follow=on floating=on
bspc rule -a Chromium desktop=^2
bspc rule -a mplayer2 floating=on
bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off

panel &

~/.zshrc

export PATH=$PATH:/home/quiv/scripts

~/.xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

xrdb ~/.Xresources
xset +fp ~/.fonts
xset +fp /usr/share/fonts/misc
xset fp rehash
xsetroot -cursor_name left_ptr &
imlibsetroot -x e -s f /home/quiv/Pictures/bloom_one_desktop.jpg &

compton -CGb --backend glx --paint-on-overlay --vsync opengl-swc &

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

sxhkd &
exec bspwm

/etc/profile

# /etc/profile

#Set our umask
umask 022

# Set our default path
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
export PATH

# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
	for profile in /etc/profile.d/*.sh; do
		test -r "$profile" && . "$profile"
	done
	unset profile
fi

# Source global bash config
if test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then
	. /etc/bash.bashrc
fi

# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP

# Man is much better than us at figuring this out
unset MANPATH

export PANEL_FIFO=/tmp/panel-fifo
export PANEL_HEIGHT=24

I have the panel, panel_bar and panel_colors files located in ~/scripts. They are all exactly the same as they are on https://github.com/baskerville/bspwm/tr … ples/panel If I look at htop it shows that both panel and panel_bar scripts are running. If I type panel into a terminal I get a message saying that the panel is already running (as expected).  Echoing $PANEL_FIFO gives /tmp/panel-fifo.

I also tried using ~/.zshenv to set the path and export $PANEL_FIFO and $PANEL_HEIGHT instead of setting the path in ~/.zshrc and exporting $PANEL_FIFO and $PANEL_HEIGHT in /etc/profile;

~/.zshenv

#
# ~/.zshenv
# Name: quiv
#

typeset -U path
path=(~/scripts $path)

# bspwm
export PANEL_FIFO=/tmp/panel-fifo
export PANEL_HEIGHT=24

However when I do this if I look at the startx log I get an error saying that panel can't find panel_colors despite it having chmod +x and being in ~/scripts which should be in the $PATH. Lastly if I

echo "test" | bar -p

from a terminal I get a bar across the top of my screen saying test! If anyone has any idea what I'm missing I'd love to know. I don't remember having this much difficulty trying to get BAR to work last time around.

Last edited by quiv (2014-06-27 05:37:14)

Offline

#2 2014-06-26 10:37:37

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

Re: [SOLVED]BAR won't show up

quiv wrote:

If anyone has any idea what I'm missing I'd love to know.

Do you have all the dependencies for the example bar panel scripts? i.e. xtitle-git, sutils-git

Offline

#3 2014-06-26 11:47:51

quiv
Member
Registered: 2014-02-20
Posts: 22

Re: [SOLVED]BAR won't show up

o_caino wrote:
quiv wrote:

If anyone has any idea what I'm missing I'd love to know.

Do you have all the dependencies for the example bar panel scripts? i.e. xtitle-git, sutils-git

Hello. Yes I have installed both of those.

Offline

#4 2014-06-26 11:53:17

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

Re: [SOLVED]BAR won't show up

Try to run panel in a terminal window.

Offline

#5 2014-06-26 12:10:48

quiv
Member
Registered: 2014-02-20
Posts: 22

Re: [SOLVED]BAR won't show up

quiv@lorelai> panel                                                                                                                                                                                                                                                                                                       ~
The panel is already running.

Offline

#6 2014-06-26 12:13:16

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

Re: [SOLVED]BAR won't show up

Kill all panel instances and run it again.

Offline

#7 2014-06-26 12:57:12

quiv
Member
Registered: 2014-02-20
Posts: 22

Re: [SOLVED]BAR won't show up

Is that just done with pkill panel? If so when I do that and run it again it stays running but nothing appears. I think like I said my OP that it is actually running but for whatever reason it's just not visible.

Last edited by quiv (2014-06-26 12:57:41)

Offline

#8 2014-06-26 13:06:01

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

Re: [SOLVED]BAR won't show up

panel will spawn the following

panel─┬─bar
      ├─bspc
      ├─cat
      ├─clock
      ├─panel_bar
      └─xtitle

Do you see a bar process when panel is running? If not, something is preventing it from running. If you do see it, maybe there's something wrong with your colours (alpha channel?).

Offline

#9 2014-06-27 00:56:21

quiv
Member
Registered: 2014-02-20
Posts: 22

Re: [SOLVED]BAR won't show up

You were completely right! The problem was with the alpha channel.

man bar

       -B color
           Set the background color of the bar. color might be either in hex format (#aarrggbb) or in the symbolic name format (eg. white, brightred, darkgray). If no compositor such as compton or xcompmgr is running the alpha channel is silently ignored.

I am using a compositor and the list of colours provided in panel_colors is of the format #rrggbb not #aarrggbb. Therefore I couldn't see anything. I appended 'FF' to all the colours and now it works perfectly. I should have thought to check that. Although that does mean for anyone else who is using a compositor and trying to set up bspwm + panel following the bspwm for dummies they won't see the panel by default either. Perhaps the alpha channel support for bar was added after that guide was last updated. Then again he does have a disclaimer in that guide stating that the syntax of bar may have changed since the guide was last updated, which seems like exactly what happened, so I guess I should take more notice of the manual pages in future. None the less, thanks for your assistance o_caino.

Last edited by quiv (2014-06-27 01:03:06)

Offline

#10 2014-06-27 03:57:14

matchew
Member
Registered: 2013-07-22
Posts: 19

Re: [SOLVED]BAR won't show up

Thanks, I followed the same guide this afternoon and ran into the same problem.

Offline

Board footer

Powered by FluxBB