You are not logged in.

#1351 2014-07-28 19:14:08

pa1adin
Member
Registered: 2012-09-09
Posts: 4

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

The easiest and dirty solution what i've found, start synapse from bspwmrc:

synapse && bspc config -w focused border_width 0

Works. smile

Offline

#1352 2014-07-28 19:17:31

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

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

pa1adin wrote:

start synapse from bspwmrc

Or the same command in sxhkdrc.

Offline

#1353 2014-07-28 19:19:18

pa1adin
Member
Registered: 2012-09-09
Posts: 4

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

Much better!. smile

Offline

#1354 2014-07-30 21:25:46

vorenon
Member
Registered: 2013-02-04
Posts: 8

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

Since upgrading to xorg-server 1.16, it's hard to restart bspwm a second time because it segfaults nearly every time.

After deleting the socket file in /tmp, it works fine, so it looks like a permission error. Any ideas how to fix this?

Offline

#1355 2014-07-31 04:28:38

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

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

vorenon wrote:

Since upgrading to xorg-server 1.16, it's hard to restart bspwm a second time because it segfaults nearly every time.

After deleting the socket file in /tmp, it works fine, so it looks like a permission error. Any ideas how to fix this?

Report an issue on github and provide a gdb stack trace.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#1356 2014-07-31 12:49:34

vorenon
Member
Registered: 2013-02-04
Posts: 8

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

Stebalien wrote:
vorenon wrote:

Since upgrading to xorg-server 1.16, it's hard to restart bspwm a second time because it segfaults nearly every time.

After deleting the socket file in /tmp, it works fine, so it looks like a permission error. Any ideas how to fix this?

Report an issue on github and provide a gdb stack trace.

Done. I don't know how gdb works so I hope a strace log is enough.

Offline

#1357 2014-08-01 09:35:24

smlb
Member
From: /dev/null
Registered: 2013-05-20
Posts: 60
Website

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

bloom: actually my blog is down (http://smlb.pw/bspwm-how-to/), I'll write the same How-To on my github and I'll link here. Sorry!

EDIT: here you are the full guide https://github.com/smlb/dotfiles/wiki/Bspwm big_smile

Last edited by smlb (2014-08-01 10:26:08)

Offline

#1358 2014-08-01 12:14:36

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

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

smlb wrote:

Thanks.


gh · da · ds

Offline

#1359 2014-08-01 15:02:57

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

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

When I kill xinit or bspwm, the panel (bar-aint-recursive) copied from the baskerville's / bloom's example does not get killed with it. It just stays alive and keeps running in the background, even without X (while maxing out my CPU). So what I usually do is to kill the panel by hand afterwards.

What I find surprising is that the panel has a different PGID from bspwm, even though it is started from within bspwm:

 PGID   PID COMMAND         CMD
  793   793 startx          /bin/sh /usr/bin/startx
  793   927  \_ xinit        \_ xinit /home/$USER/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.GubNWU53XI
  928   928      \_ Xorg.bi      \_ /usr/bin/Xorg.bin -nolisten tcp :0 -auth /tmp/serverauth.GubNWU53XI vt1
  935   935      \_ wm           \_ /bin/sh /home/$USER/.local/bin/wm
  935   941          \_ xsc          \_ /usr/bin/xscreensaver -no-splash
  935   942          \_ lig          \_ /bin/bash /home/$USER/.local/bin/lightsOn.sh
  935 23300          |   \_          |   \_ sleep 290
  935   947          \_ sxh          \_ /usr/bin/sxhkd
  935   951          \_ bsp          \_ bspwm
  955   983 panel           /bin/sh /home/$USER/.local/bin/panel
  955   986  \_ bspc         \_ bspc control --subscribe
  955   987  \_ xtitle       \_ xtitle -sf T%s
  955   988  \_ clock        \_ clock -sf C%b %d | %H:%M
  955   989  \_ battery      \_ battery -sf Bs%s
  955   990  \_ battery      \_ battery -sf Bl%i
  955   991  \_ cat          \_ cat /tmp/panel-fifo
  955   992  \_ panel_bar    \_ /bin/sh /home/$USER/.local/bin/panel_bar
  955   993  \_ bar-aint-re  \_ bar-aint-recursive -f -*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-* -B #FF34322E -F #FFA3A6AB -g x24
  955   994  \_ panel        \_ /bin/sh /home/$USER/.local/bin/panel

I guess this line in the configuration should make sure that everything gets killed cleanly, but I guess if it doesn't fire kill 0, it means that panel never receives a SIG{KILL,TERM,QUIT,INT} in the first place:

trap 'trap - TERM; kill 0' INT TERM QUIT EXIT

Any idea what could be happening?

Offline

#1360 2014-08-01 15:26:56

smlb
Member
From: /dev/null
Registered: 2013-05-20
Posts: 60
Website

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

Stalafin, add this to your sxhkdrc

# This
bspc quit && pkill panel 
# Instead of this
bspc quit

Last edited by smlb (2014-08-01 15:28:19)

Offline

#1361 2014-08-01 15:47:25

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

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

smlb wrote:

Stalafin, add this to your sxhkdrc

# This
bspc quit && pkill panel 
# Instead of this
bspc quit

That is certainly the proper way of shutting down bspwm.

What just surprises me is that if I kill the xinit process itself (pkill -x xinit), the panel keeps on happily running. I wonder why that is.

Last edited by Stalafin (2014-08-01 15:47:41)

Offline

#1362 2014-08-01 15:59:00

Dragon707
Member
From: The Netherlands
Registered: 2013-06-04
Posts: 61
Website

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

Stalafin wrote:
smlb wrote:

Stalafin, add this to your sxhkdrc

# This
bspc quit && pkill panel 
# Instead of this
bspc quit

That is certainly the proper way of shutting down bspwm.

What just surprises me is that if I kill the xinit process itself (pkill -x xinit), the panel keeps on happily running. I wonder why that is.


I guess thats it because its only running the script, the bar or dzen just stops if im correct.


ArchLinux is Awesome

GitHub   •   Dotfiles   •   Contact me   •   DELETE...!

Offline

#1363 2014-08-01 16:41:28

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

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

Dragon707 wrote:
Stalafin wrote:
smlb wrote:

Stalafin, add this to your sxhkdrc

# This
bspc quit && pkill panel 
# Instead of this
bspc quit

That is certainly the proper way of shutting down bspwm.

What just surprises me is that if I kill the xinit process itself (pkill -x xinit), the panel keeps on happily running. I wonder why that is.


I guess thats it because its only running the script, the bar or dzen just stops if im correct.

You are not correct. The panel stays alive, as does bar-aint-recursive (which is maxing out my CPU).

Offline

#1364 2014-08-07 11:44:45

jan
Member
Registered: 2008-02-17
Posts: 10

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

Is there a way to focus window on current monitor? something like

bspc window -f right.current_monitor

Last edited by jan (2014-08-07 11:45:30)

Offline

#1365 2014-08-08 04:38:40

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

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

jan wrote:

Is there a way to focus window on current monitor? something like

bspc window -f right.current_monitor

bspc window -f right.local

?


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#1366 2014-08-08 06:59:05

jan
Member
Registered: 2008-02-17
Posts: 10

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

Stebalien wrote:
jan wrote:

Is there a way to focus window on current monitor? something like

bspc window -f right.current_monitor

bspc window -f right.local

?


Are you sure? In my test, .local selects window in current 'desktop', not 'monitor'

Offline

#1367 2014-08-08 09:12:13

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

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

btw, I noticed that the command

bspc window -f {next,prev}

does the same as

bspc window -f {next,prev}.local

both select only windows on the current desktop.

Offline

#1368 2014-08-09 05:24:06

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

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

jan wrote:
Stebalien wrote:
jan wrote:

Is there a way to focus window on current monitor? something like

bspc window -f right.local

?


Are you sure? In my test, .local selects window in current 'desktop', not 'monitor'

Please define "windows in current monitor" (I define it as windows visible on the current monitor). Do you want to switch between all windows on all desktops in the current monitor? This doesn't make sense because desktops aren't spatially oriented with respect to each other. That is, there is no concept "the desktop to the right of this one", there is only next and previous.

o_caino wrote:

btw, I noticed that the command

bspc window -f {next,prev}

does the same as

bspc window -f {next,prev}.local

both select only windows on the current desktop.

The first one will jump between monitors, the second will stay within the confines of the current monitor.

Last edited by Stebalien (2014-08-09 05:26:19)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#1369 2014-08-09 08:40:53

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

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

Stebalien wrote:

The first one will jump between monitors, the second will stay within the confines of the current monitor.

Not in my case. Both behave the same way: focus only windows on the current desktop.

Last edited by o_caino (2014-08-09 08:41:40)

Offline

#1370 2014-08-09 12:58:32

jan
Member
Registered: 2008-02-17
Posts: 10

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

Thanks @Stebalien and @o_caino! Your opposite testimony on '.local' behavior made me think it could be a version problem. So I did 'sudo yaourt -S bspwm-git' to upgrade, and '.local' works as @Stebalien described now :-)

Offline

#1371 2014-08-09 18:14:09

angelic_sedition
Member
Registered: 2014-01-20
Posts: 124
Website

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

I've been messing around with herbstluftwm today. The hooks have given me some cool ideas for using

bspc control --subscribe

I also noticed that I had background window opacity set in my compton.conf. Compton doesn't seem to be able to detect inactive windows with bspwm though. The only thing I could find about this was this reddit post (with no solution). Does anyone here know how to get compton to recognize unfocused windows with bspwm?

Last edited by angelic_sedition (2014-08-09 18:14:27)

Offline

#1372 2014-08-09 21:28:28

cju
Member
Registered: 2013-06-23
Posts: 194

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

angelic_sedition wrote:

Compton doesn't seem to be able to detect inactive windows with bspwm though.

Nope, that should work indeed. Please post your compton config for further help.

Offline

#1373 2014-08-10 11:12:39

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

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

jan wrote:

Your opposite testimony on '.local' behavior made me think it could be a version problem.

I check everyday for updates, so I'm always running the most recent (-git) version of both bspwm and sxhkd...

jan wrote:

In my test, .local selects window in current 'desktop', not 'monitor'

Stebalien wrote:

The first one will jump between monitors, the second will stay within the confines of the current monitor.

Note that there are two different .local modifiers

man bspwm wrote:

   Window
       Select a window.

           WINDOW_SEL := <window_id>
                       | (DIR|CYCLE_DIR|biggest|last|focused|older|newer)[.float
ing|.tiled][.like|.unlike][.manual|.automatic][.urgent][.local]

[...]
           local
               Only consider windows of the current desktop.
[...]

   Desktop
       Select a desktop.

           DESKTOP_SEL := <desktop_name>
                        | [MONITOR_SEL:]^<n>
                        | (CYCLE_DIR|last|[MONITOR_SEL:]focused|older|newer)[.occupied|.free][.urgent][.local]
[...]
           local
               Only consider desktops of the current monitor.

o_caino wrote:

bspc window -f {next,prev}.local

I'm talking about the former.
If there's a modifier that restrics matches to the current desktop I'd expect the default behaviour, without modifiers, to match windows regardless of the desktop they're in. And, as I said on a previous post, this is not the case (at least for me).

Last edited by o_caino (2014-08-10 11:19:59)

Offline

#1374 2014-08-11 18:24:43

angelic_sedition
Member
Registered: 2014-01-20
Posts: 124
Website

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

cju wrote:
angelic_sedition wrote:

Compton doesn't seem to be able to detect inactive windows with bspwm though.

Nope, that should work indeed. Please post your compton config for further help.

I should have checked first all my settings; the problem was in my config:

mark-wmwin-focused = true;

This seems to have no effect in herbstluftwm and a few others I tried, but with bspwm all windows get marked as focused I guess, so it has to be set to false.

Offline

#1375 2014-08-12 10:19:18

cju
Member
Registered: 2013-06-23
Posts: 194

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

angelic_sedition wrote:

I should have checked first all my settings; the problem was in my config:

mark-wmwin-focused = true;

This seems to have no effect in herbstluftwm and a few others I tried, but with bspwm all windows get marked as focused I guess, so it has to be set to false.

You don't have to set it to false, just don't set it at all since it's false by default. wink It's strange though cause I don't run into that issue having wmwin enabled… Which versions of bspwm and compton do you use?

Offline

Board footer

Powered by FluxBB