You are not logged in.

#651 2013-09-23 21:46:48

andornaut
Member
Registered: 2013-09-09
Posts: 23

Re: bspwm — A tiling window manager based on binary space partitioning

Supplantr wrote:
andornaut wrote:

does anyone know how to unbind the "toggle visibility" from the clock?

Assuming you're using the example dzen2 script, it should be as simple as removing ^ca(1, bspc control --toggle-visibility) and the consecutive ^ca() from sys_infos.

[edit] Which was just done in the latest git commit.

Great, thanks!

Offline

#652 2013-09-24 09:46:30

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Stalafin wrote:
bloom wrote:
Stalafin wrote:

What I find confusing is that I technically don't have two screens [...]

This should be fixed by ca2d030.

Got the latest git version - bspwm starts if I have my laptop running only, but exits immediately when I run it with an external screen attached. Not sure how to debug that at the moment.

Grab this patch and apply it to the standard Git PKGBUILD.

Install the package generated from this patched PKGBUILD.

(Afterwards, check that the output of file $(which bspwm) ends with not stripped.)

In a virtual terminal (without X running):

ulimit -c unlimited
startx
sudo systemd-coredumpctl gdb bspwm
set logging on
bt full
q

And post the content of gdb.txt.

EDIT
The issue might be fixed by 48d181f.
Or 6ae7601.

Last edited by bloom (2013-09-24 19:21:26)


gh · da · ds · cr · ab · fkr

Offline

#653 2013-09-24 17:41:14

Ayeye
Member
Registered: 2013-09-24
Posts: 2

Re: bspwm — A tiling window manager based on binary space partitioning

Hi guys.
I was interested in the bspwm project and I wanted to try it. I think it's a really good wm but I have a problem with the panel.
I followed the directions but instead of the panel i see an empty space. Any ideas?

These are my file

[nicola@arch ~]$ cat .xinitrc
sxhkd &
[ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO"
mkfifo "$PANEL_FIFO"
exec bspwm -s "$PANEL_FIFO"
[nicola@arch ~]$ echo $PANEL_FIFO
/tmp/panel-fifo
[nicola@arch ~]$ cat .config/bspwm/bspwmrc 
#! /bin/sh

FIRST_DESK=1
REMAINING_DESKS="$(seq 2 9) 0"
bspc desktop Desktop01 -n $FIRST_DESK
bspc monitor -a $REMAINING_DESKS

bspc rule -a Gimp -d Eight --floating

bspc config split_ratio         0.52
bspc config border_width        2
bspc config window_gap          12
bspc config borderless_monocle  true
bspc config gapless_monocle     true

panel &

Offline

#654 2013-09-24 19:23:27

bloom
Member
Registered: 2010-08-18
Posts: 749
Website

Re: bspwm — A tiling window manager based on binary space partitioning

Ayeye wrote:
exec bspwm -s "$PANEL_FIFO"
exec bspwm -s "$PANEL_FIFO" -p W

gh · da · ds · cr · ab · fkr

Offline

#655 2013-09-24 21:42:13

andornaut
Member
Registered: 2013-09-09
Posts: 23

Re: bspwm — A tiling window manager based on binary space partitioning

By default `honor_ewmh_focus` is `false`, which is good in that it prevents applications which are started in bspwmrc with rules such as the following from focusing on off-screen desktops when bspwm is started:

bspc rule -a Pidgin -d three

However, now when the pidgin tray icon is clicked, the 3rd desktop is no longer focused. This behavior can be changed by setting `bspc config honor_ewmh_focus true`, but then we have the startup-offscreen-desktop-focus issue again.

I've worked around this issue with the following in bspwmrc:

pidgin &
sleep 1
# set after pidgin starts so that desktop #3 isn't focused on startup.
bspc config honor_ewmh_focus true

I'm just wondering if anyone has any ideas on how to improve this workaround, or to better address this issue in general?

Last edited by andornaut (2013-09-25 01:53:36)

Offline

#656 2013-09-25 01:56:32

tedbell
Member
Registered: 2012-08-04
Posts: 131

Re: bspwm — A tiling window manager based on binary space partitioning

I tried this out yesterday. I wasn't able to get the panel working according to the instructions so I ditched it for now. But I must say, of all the tiling wm's I tried (not being able to configure any tongue ) I liked this one the best!

Last edited by tedbell (2013-09-25 01:56:44)

Offline

#657 2013-09-25 02:31:31

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: bspwm — A tiling window manager based on binary space partitioning

tedbell wrote:

I tried this out yesterday. I wasn't able to get the panel working according to the instructions so I ditched it for now. But I must say, of all the tiling wm's I tried (not being able to configure any tongue ) I liked this one the best!

Though it sounds like you have already set roots here to some degree, you might want to take a look at i3.  Its ease of configuration is amazing, and all configuration options are very well documented in the i3 User Guide on their site.

That said, I too am liking this window manager quite a bit.  The panel is really quite easy if you know just a little bit of shell.  Honestly, I know a lot less that I like to think I do, and setting things up in an efficient manner was really quite easy by just modifying bloom's provided config examples.  I had used dzen2 in the past, so I decided to give LemonBoy's bar a go.  It doesn't register click events (that I can tell), but I don't really use that feature anyway.

To get things going, there is a beginners guide link somewhere in this thread that makes it quite easy to get started with a working bar or dzen2.  I think it was earsplit who wrote it up… but without scanning back through, I might be wrong on that.

Offline

#658 2013-09-25 02:56:31

tedbell
Member
Registered: 2012-08-04
Posts: 131

Re: bspwm — A tiling window manager based on binary space partitioning

WonderWoofy wrote:
tedbell wrote:

I tried this out yesterday. I wasn't able to get the panel working according to the instructions so I ditched it for now. But I must say, of all the tiling wm's I tried (not being able to configure any tongue ) I liked this one the best!

Though it sounds like you have already set roots here to some degree, you might want to take a look at i3.  Its ease of configuration is amazing, and all configuration options are very well documented in the i3 User Guide on their site.

That said, I too am liking this window manager quite a bit.  The panel is really quite easy if you know just a little bit of shell.  Honestly, I know a lot less that I like to think I do, and setting things up in an efficient manner was really quite easy by just modifying bloom's provided config examples.  I had used dzen2 in the past, so I decided to give LemonBoy's bar a go.  It doesn't register click events (that I can tell), but I don't really use that feature anyway.

To get things going, there is a beginners guide link somewhere in this thread that makes it quite easy to get started with a working bar or dzen2.  I think it was earsplit who wrote it up… but without scanning back through, I might be wrong on that.

Thanks for that! I did try i3 and I liked it a lot. I am actually torn between that and bspwm. Maybe I'll give it another go once I figure out configuring the panel a bit. I had some window trouble in i3 though. Maybe I'll install both and test drive. As long as I can set up a menu I'm sold.

Offline

#659 2013-09-25 03:37:27

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: bspwm — A tiling window manager based on binary space partitioning

tedbell wrote:

As long as I can set up a menu I'm sold.

A menu?  Learn to use dmenu and bask in its glory!  …then go find Tilby's interrobang and see the wonders of built in completion.

Offline

#660 2013-09-25 03:40:35

tedbell
Member
Registered: 2012-08-04
Posts: 131

Re: bspwm — A tiling window manager based on binary space partitioning

Sweet. I just installed it again. I am having the same problem as Ayeye but I already have

exec bspwm -s "$PANEL_FIFO" -p W

in my .xinitrc. Can you help me with this or point me to a good beginners tutorial of dzen2? I'd love to have some conky output So I can keep my desktop clean. My present conky is extensive! Thanks for the advice.W ill definitely check out dmenu and interrobang.

Offline

#661 2013-09-25 03:47:36

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: bspwm — A tiling window manager based on binary space partitioning

Offline

#662 2013-09-25 03:55:19

tedbell
Member
Registered: 2012-08-04
Posts: 131

Re: bspwm — A tiling window manager based on binary space partitioning

Thanks. I followed those instructions to the letter.
I went through the thread and found that the command

 which panel 

returns...

which: no panel in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/vendor_perl:/usr/bin/core_perl)

Here's my bash_profile...

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

export PANEL_FIFO=/tmp/panel-fifo
export PATH=$PATH:/home/gorf

and standard bspwmrc...

#! /bin/sh

bspc desktop ^1 -n I
bspc monitor -a II III IV V VI VII VIII IX X

bspc rule -a Gimp -d ^8 --follow --floating
bspc rule -a Chromium -d ^2
bspc rule -a mplayer2 --floating
bspc rule -a Kupfer.py --focus
bspc rule -a Screenkey --unmanage

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

panel &

and .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

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
#/usr/lib/systemd/systemd --user &
#exec openbox-session
sxhkd &
[ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO"
mkfifo "$PANEL_FIFO"
exec bspwm -s "$PANEL_FIFO" -p W

Offline

#663 2013-09-25 03:57:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: bspwm — A tiling window manager based on binary space partitioning

tedbell wrote:

Thanks. I followed those instructions to the letter.
I went through the thread and found that the command

 which panel 

returns...

which: no panel in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/vendor_perl:/usr/bin/core_perl)

If this is the case, then you didn't follow the instructions to the letter.

Offline

#664 2013-09-25 04:07:09

tedbell
Member
Registered: 2012-08-04
Posts: 131

Re: bspwm — A tiling window manager based on binary space partitioning

Yep I followed them to the letter. Cloned and installed all the files. Edited all the necessary files. Still no panel.

Offline

#665 2013-09-25 05:48:44

cippaciong
Member
Registered: 2010-06-21
Posts: 104
Website

Re: bspwm — A tiling window manager based on binary space partitioning

@tedbell

Copy the scripts in bspwm/examples/panel/panel and bspwm/examples/panel/panel_bar to some directory. Add this directory to your $PATH using export PATH=$PATH:/path/to/panel/scripts. Make the scripts executable running chmod +x panel && chmod +x panel_bar

Changes in environmental variables like $PATH are not preserved after reboots, to make them permanent you have to add lines like this one

export PATH=$PATH:/path/to/panel/scripts

to your .bash_profile / .profile / any_other_file_you_use_to_set_variables. wink

Offline

#666 2013-09-25 07:13:18

tedbell
Member
Registered: 2012-08-04
Posts: 131

Re: bspwm — A tiling window manager based on binary space partitioning

Thanks. I got those done.
Still no panel.
The 'Which panel' command is returning the folder with my scripts. I have dzen2 installed. I put the export variables in bash_profile and also in /etc/profile Still no panel showing up. I notice that panel is running though. I don't see anything though.

Last edited by tedbell (2013-09-25 07:18:07)

Offline

#667 2013-09-25 10:09:00

Ayeye
Member
Registered: 2013-09-24
Posts: 2

Re: bspwm — A tiling window manager based on binary space partitioning

bloom wrote:
Ayeye wrote:
exec bspwm -s "$PANEL_FIFO"
exec bspwm -s "$PANEL_FIFO" -p W

Thanks for reply. I modified my .xinitrc but i still do not see the bar. And the script panel is ok ( i think ).

[nicola@arch ~]$ which panel
/home/nicola/.local/bin/panel 

Offline

#668 2013-09-25 16:39:13

Supplantr
Member
From: a state of sunshine
Registered: 2011-12-12
Posts: 149
Website

Re: bspwm — A tiling window manager based on binary space partitioning

@Ayeye and @tedbell,

Are you launching the panel in bspwmrc or some other script? If you're using dzen2, the example panel script must be launched as panel dzen2 or appropriately modified. If you're using bar, ensure it actually exists as bar-aint-recursive. The aforementioned panel script and panel_{bar,dzen2} (depending on which one you're using, of course) need to be in your $PATH.

Also, make sure you're creating the necessary fifo as described in the example xinitrc.

The examples are very straightforward. Feel free to peruse them, study them, care for them as if they were your own, etc.


I use linux and I dont understand nothing in this post.

Offline

#669 2013-09-25 17:40:15

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 616

Re: bspwm — A tiling window manager based on binary space partitioning

bloom wrote:

EDIT
The issue might be fixed by 48d181f.
Or 6ae7601.

Great, it works marvelously now! Thank you for your work. smile

Offline

#670 2013-09-25 20:15:04

tedbell
Member
Registered: 2012-08-04
Posts: 131

Re: bspwm — A tiling window manager based on binary space partitioning

Supplantr: Thanks for that. Still no luck. When I run the scripts manually from terminal it runs but I don't see anything. I tried this with all the scrips and panels in the examples. No panel is displaying at all. sad

EDIT: I've given up on the panel examples for now and am using a plain vanilla dzen panel. smile

Last edited by tedbell (2013-09-25 21:47:17)

Offline

#671 2013-09-26 00:43:32

vox23
Member
Registered: 2013-09-25
Posts: 9

Re: bspwm — A tiling window manager based on binary space partitioning

Did anyone have managed to start bspwm as a systemd user service? Here's what I got so far:

$ cat .config/systemd/user/bspwm.service
[Unit]
Description=bspwm
After=graphical.target

[Service]
ExecStart=/usr/bin/bspwm
Environment=DISPLAY=:0
Environment=BSPWM_FIFO="/tmp/bspwm-fifo"
Environment=PANEL_HEIGHT=24

[Install]
WantedBy=default.target

Unfortunatelly:

$ systemctl --user status bspwm.service
bspwm.service - bspwm
   Loaded: loaded (/home/me/.config/systemd/user/bspwm.service; enabled)
   Active: failed (Result: exit-code) since Thu 2013-09-26 01:29:23 BST; 5min ago
  Process: 278 ExecStart=/usr/bin/bspwm (code=exited, status=1/FAILURE)
 Main PID: 278 (code=exited, status=1/FAILURE)

Sep 26 01:29:23 HAL9000 systemd[271]: Starting bspwm...
Sep 26 01:29:23 HAL9000 systemd[271]: Started bspwm.
Sep 26 01:29:23 HAL9000 systemd[271]: bspwm.service: main process exited, code=exited, status=1/FAILURE
Sep 26 01:29:23 HAL9000 systemd[271]: Unit bspwm.service entered failed state.

I know I should call sxhkd before bspwm however this is just a test service to get it running. I'm guessing that it's trying to start before X but I'm not quite sure how to approach it. Any pointers?

Offline

#672 2013-09-26 14:26:05

instantepiphany
Member
Registered: 2013-09-04
Posts: 32

Re: bspwm — A tiling window manager based on binary space partitioning

My windows are resizing veeeery slowly while compton is running. I think they were resizing normally at first(with compton running). Not sure what I changed as when it broke I didn't have time to troubleshoot, it has been a few weeks since then. Without compton enabled, windows resize faster but have horizontal tearing.

Offline

#673 2013-09-26 18:29:22

tedbell
Member
Registered: 2012-08-04
Posts: 131

Re: bspwm — A tiling window manager based on binary space partitioning

OK I think I identified the problem...

panel: line 19: bar-aint-recursive: command not found

is returned when I run the panel script from terminal.

And also this

Could not load font -*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1

I have the terminus-font package installed. Others are experiencing this issue...
https://aur.archlinux.org/packages/bar- … setlang=he

Last edited by tedbell (2013-09-26 18:45:36)

Offline

#674 2013-09-26 18:40:08

andornaut
Member
Registered: 2013-09-09
Posts: 23

Re: bspwm — A tiling window manager based on binary space partitioning

tedbell wrote:

OK I think I identified the problem...

panel: line 19: bar-aint-recursive: command not found

is returned when I run the panel script from terminal.

Do you want to use "panel_bar" or "panel_dzen2". You mentioned "dzen2" earlier, so I assumed you were trying to run panel_dzen2, but when I look at your bspwmrc it shows that you are executing "panel" (which defaults to "panel_bar").

If you want to use panel_dzen2, then change

panel &

  to

panel dzen2 &

in bspwmrc.

You can also try running `panel dzen2` in a terminal to see if it works.

Edit:

There are a few things you can check - enter these into a terminal while in bspwm:

1)

[[ ! -z "$PANEL_FIFO" ]] && echo "\$PANEL_FIFO is: $PANEL_FIFO" || echo "\$PANEL_FIFO IS NOT SET"

2)

which panel && which panel_dzen2 && which dzen2 || echo "NOT ALL SCRIPTS WERE FOUND"

Last edited by andornaut (2013-09-26 18:47:26)

Offline

#675 2013-09-26 18:58:11

tedbell
Member
Registered: 2012-08-04
Posts: 131

Re: bspwm — A tiling window manager based on binary space partitioning

Hi thanks for that reply!

First off here are the outputs of those commands:

$PANEL_FIFO is: /tmp/panel-fifo
/home/gorf/.scripts/panel
/home/gorf/.scripts/panel_dzen2

Those are where the scripts are located.

I was able to run 'panel dzen2' fine now. smile

However I still have the problem with 'panel' and 'bar-aint-recursive'. I had to change the example script to execute 'bar'. And I get the following error:

Could not load font -*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1

I have terminus-font installed.
Thanks for the help all. I am already addicted to this wm. big_smile

Offline

Board footer

Powered by FluxBB