Skip to content

arch with bspwm - panel refuses to start from bspwmrc

Hi all,

I'm convinced that my computer is haunted because the panel with bspwmrc works absolutely fine, with no errors, in every regard, except that it refuses to start from bspwmrc, and I have no clue why.

The panel exacutable is in ~/.config/bspwm/panel, so I've added,

$PATH:PATH=~/.config/bspwm/panel

to my .bashrc so I could access it without typing about the absolute path. My bspwmrc looks like this:

#! /bin/sh

bspc monitor -d I II III IV V

bspc config border_width                4
bspc config window_gap                  20
bspc config split_ratio                 0.52
bspc config borderless_monocle          true
bspc config gapless_monocle             true
bspc config focus_follows_pointer       true
bspc config auto_alternate              false
bspc config auto_cancel                 true
bspc config top_padding                 16
bspc config normal_border_color         "#181512"
bspc config focused_border_color        "#008B8B"
bspc config presel_border_color         "#AC4142"

bspc config normal_frame_opacity        0.0
bspc config focused_frame_opacity       0.05

bspc rule -a Skype -d ^3 --floating
bspc config rule_command "$(which rule_command)"

conky -c ~/.conkyrings/.conkyrc &
compton --config ~/.config/compton.conf &
panel &

so it's set to run the panel (with the properly configured $PATH) on startup.

My .xinitrc looks like this:

#!/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

#bspwm
rmmod pcspkr &
xset +fp /usr/share/fonts/local &
xset fp rehash &
xsetroot -cursor_name left_ptr &
feh --bg-scale ~/Pictures/polygons.jpg &
sxhkd &
exec bspwm

Just in case that's important for anything.

I've already set the variables $PANEL_FIFO and $PANEL_HEIGHT, so running

echo $PANEL_FIFO

Already yields

 /tmp/panel-fifo 

So that's not the issue.

Lastly, I've tried running

startx &> /tmp/x.log

to see if it spits out any errors relating to the panel (or any at all), but it doesn't.

I am totally at a loss. I've no clue why it doesn't work. Right now to get a panel, I've just opened a terminal in a different workspace and ran "panel" to make it go. Does anyone have any idea why this wouldn't work? Any help is appreciated, thank you very much.

5 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
5 · 100% up
Kind
Text
ID
211phw

Author

18
posts
97
comments
9
media
View profile

7 comments

Is that the only instance of panel?

'pidof panel'

'ps aux|grep panel'

Another thought may be that since your font's are being rehashed congruently with the execution of the other .xinitrc items listed below, the task may have no completed by the time exec bspwm has. Therefore I suggest you remove the trailing &'s :

xset +fp ~/.fonts

xset +fp /usr/share/fonts/local

xset fp rehash

2 points

Your path looks messed up (bashrc), i'm on my phone right now, i can verify when i get home.

Try something like PATH=$PATH:$HOME/.config/bspwm/panel

(Cant find tilde on my phone so i used $HOME)

1 points

The PATH isn't the issue, as if I open up the terminal and type "panel" it launches without issue.

1 points

what if in your bspwmrc you add something like panel &> /tmp/panel.log, have you tried anything like that?

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.