You are not logged in.
Hi all!
First, sorry for my bad english.
I finally managed to get a working lemonbar in bspwm (using dotfiles found online, I have to admit).
When I start the panel script from a terminal, it runs perfectly fine. But when I try to put the command to execute the bar in my bspwmrc, it doesn't appear on screen. It runs, because if I execute "pgrep panel" (panel is the name of the script) it shows 4-5 pid. Putting it in .xinitrc causes the same behavior.
The funny thing is that if I login into a TTY and execute startx from there, the bar works (with the command in either bspwmrc or .xinitrc): the problem appears only when I log in using a login manager. I use SLIM, but I tried to install LightDM just to test this out and the problem is the same.
Bspwmrc:
#!/bin/env bash
bspc config border_width 1
i=1
for monitor in $(bspc query -M | tac); do
bspc monitor $monitor \
-n "$i" \
-d {I,II,III,IV,V}
let i++
done
NMON=$i
unset i
bspc monitor ^1 -s ^2
bspc config -m 1 top_padding 32
bspc config window_gap 25
# Visual options
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer true
bspc config focus_by_distance true
bspc config history_aware_focus true
bspc config auto_alternate true
bspc config auto_cancel true
bspc config normal_frame_opacity 0.0
bspc config focused_frame_opacity 0.1
# colors
bspc config focused_border_color "#F2F1B9"
bspc config active_border_color "#232826"
bspc config normal_border_color "#232826"
bspc config presel_border_color "#5080C9"
bspc config urgent_border_color "EF5847"
# Rules
bspc rule -a sxiv floating=on follow=on center=on
bspc rule -a lxappearance floating=on center=on
bspc rule -a pavucontrol floating=on follow=on center=on
bspc rule -a google-chrome-stable desktop=1
bspc rule -a gimp floating=on
if [ -e "$BSPWM_TREE" ] ; then
bspc restore -T "$BSPWM_TREE" -H "$BSPWM_HISTORY" -S "$BSPWM_STACK"
rm "$BSPWM_TREE" "$BSPWM_HISTORY" "$BSPWM_STACK"
fi
xsetroot -cursor_name left_ptr
#xrdb ~/.Xresources
#setxkbmap it
feh --recursive --randomize --bg-fill /home/pinusc/.wallpaper
killall panel
~/bin/panel &.xinitrc:
sxhkd &
exec bspwm
export _JAVA_AWT_WM_NONREPARENTING=1
exec xrdb /home/pinusc/.Xresources
exec setxkbmap itI don't post my LightDM config because it is the default one.
Thank you in advance.
Edit: I should add that I'm using lemonbar-xft-git from AUR and that I didn't post the config because the problem is the same even putting only "lemonbar" in place of "~/bin/panel", so the problem isn't in the panel script.
Last edited by pinusc (2015-10-13 14:32:21)
Offline
Okay, I found the solution. It was obviously very idiot.
SLiM was executing the default login command, that used BASH. But I am actually using zsh, and my PATH is set in my .zshrc . When I put "panel &" in bspwmrc, it wasn't running at all. And when I put "lemonboy", it actually worked. It just exit due to the absence of input (putting "echo foo | lemonbar -p" made it work). So I simply changed the default login shell for Slim to zsh.
Note to whoever may one day read this: as the wiki says, the right login command for zsh in slim is not "zsh --login" (which one could think, because the one for bash is "bas --login") but instead "zsh -l".
Offline