You are not logged in.

#1101 2014-02-19 20:09:15

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

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

easysid wrote:

One quick question, is there a way to get just the window class/application name instead of the whole window title?

You could, in panel, replace

xtitle -sf 'T%s' > "$PANEL_FIFO" &

by

xprop -spy -root _NET_ACTIVE_WINDOW | sed -un 's/.*\(0x.*\)/A\1/p' > "$PANEL_FIFO" &

and, in panel_*, replace T*) by A*) and ${line#?} by $(xwinfo -c ${line#?}) in the title=... declaration...


gh · da · ds

Offline

#1102 2014-02-19 20:12:24

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

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

Tmn wrote:

Can I switch desktops not only based on the key I press but the monitor I am currently selecting a window on and the key I press?

The Git version provides the following desktop selector:
MONITOR_SEL:^<n>.

(And focused is a monitor selector...)


gh · da · ds

Offline

#1103 2014-02-19 21:42:44

regulament
Member
Registered: 2014-02-15
Posts: 67

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

I need some help with a thing that's been bugging me for a few days now.

My typical day goes like this: home( notebook + secondary monitor, each with 10 workspaces), college( just the notebook display), work( notebook + 2 monitors) and home again. What I would like is to be able to disconnect the monitor when I leave home and have all the windows from all the workspaces on that monitor to be moved to, say the last workspace on the the notebook monitor. If the monitor with that name is connected again, I can manually move them back.

So, if a monitor is no longer connected simply moving all the windows to a workspace on a connected monitor.

Does anybody have any idea how I could implement this? Or bloom, is there any interest in integrating this?

Thanks beforehand for helping and great job bloom!

Last edited by regulament (2014-02-19 21:45:22)

Offline

#1104 2014-02-20 06:35:04

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

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

bloom wrote:

You could, in panel, replace

xtitle -sf 'T%s' > "$PANEL_FIFO" &

by

xprop -spy -root _NET_ACTIVE_WINDOW | sed -un 's/.*\(0x.*\)/A\1/p' > "$PANEL_FIFO" &

and, in panel_*, replace T*) by A*) and ${line#?} by $(xwinfo -c ${line#?}) in the title=... declaration...

Thank you very much smile
This method displays N/A when no window is present (Output of xwinfo -c 0x0 ). A quick sed in xwinfo command fixed it.
Any chance a switch incorporates this into xtitle itself?

Last edited by easysid (2014-02-20 06:57:49)

Offline

#1105 2014-02-20 08:52:44

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

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

regulament wrote:

Does anybody have any idea how I could implement this?

Have you tried to set remove_disabled_monitor?


gh · da · ds

Offline

#1106 2014-02-20 10:16:55

regulament
Member
Registered: 2014-02-15
Posts: 67

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

Just tried it now. Added "bspc remove_disabled_monitor    true" to my bspwmrc.

Simply plugging out the monitor: no change. Ran an xrandr script that disconnected the monitor: now I can access all workspaces( notebook + monitor) on my notebook screen. I like it.

Connected the monitor again: nothing happens. Ran xrandr script. Now I have 1 workspace on the monitor( I assume it's default) and on the notebook display I still have all my previous ones( the ones that should be on the notebook and the ones that should be on the monitor).

How could I send all the workspaces that were on the monitor( and are now on the notebook display) back to the monitor?

Offline

#1107 2014-02-20 15:42:08

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

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

regulament wrote:

Simply plugging out the monitor: no change.

What's the output of xrandr before and after the monitor unplugging?


gh · da · ds

Offline

#1108 2014-02-20 15:47:31

madmaurice
Member
Registered: 2010-04-18
Posts: 22

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

I have currently a problem where java (openjdk) guis aren't drawn while using bspwm. it works on the same machine and using awesome as wm. Has anyone experienced that before? Any ideas what causes this problem?

Offline

#1109 2014-02-20 16:04:27

regulament
Member
Registered: 2014-02-15
Posts: 67

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

bloom wrote:
regulament wrote:

Simply plugging out the monitor: no change.

What's the output of xrandr before and after the monitor unplugging?

Before:

Screen 0: minimum 320 x 200, current 2800 x 1920, maximum 32767 x 32767
LVDS1 connected 1600x900+1200+1020 (normal left inverted right x axis y axis) 382mm x 215mm
   1600x900       60.1*+   40.1  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 connected 1200x1920+0+0 left (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200      60.0*+
   1920x1080      60.0 +
   1600x1200      60.0  
   1680x1050      60.0  
   1280x1024      60.0  
   1280x960       60.0  
   1024x768       60.0  
   800x600        60.3  
   640x480        60.0  
   720x400        70.1  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

And after unplugging:

Screen 0: minimum 320 x 200, current 2800 x 1920, maximum 32767 x 32767
LVDS1 connected 1600x900+1200+1020 (normal left inverted right x axis y axis) 382mm x 215mm
   1600x900       60.1*+   40.1  
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 disconnected 1200x1920+0+0 left (normal left inverted right x axis y axis) 0mm x 0mm
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
  1920x1200 (0x47)  154.0MHz
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock   74.0KHz
        v: height 1200 start 1203 end 1209 total 1235           clock   60.0Hz

No idea what that VIRTUAL1 is.

LE: I should point out that I'm using the latest AUR version( 0.8.8), not the latest git.

Last edited by regulament (2014-02-20 16:25:00)

Offline

#1110 2014-02-20 19:12:46

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

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

madmaurice wrote:

Any ideas what causes this problem?

https://github.com/baskerville/bspwm/is … t-24108100


gh · da · ds

Offline

#1111 2014-02-21 09:24:39

aorith
Member
Registered: 2013-04-19
Posts: 10

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

Hello guys, what's your solution for integrating a tray icon with bspwm? I love i3bar integrated tray icon but also like the bar feature to show window title on top tongue

I'm using a mini-tint2 but I don't like it very much

Offline

#1112 2014-02-21 14:35:03

madmaurice
Member
Registered: 2010-04-18
Posts: 22

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

bloom wrote:
madmaurice wrote:

Any ideas what causes this problem?

https://github.com/baskerville/bspwm/is … t-24108100

Thanks. I found out that there's another fix when using OpenJDK by setting _JAVA_AWT_WM_NONREPARENTING=1.
Source: http://awesome.naquadah.org/wiki/Problems_with_Java

Offline

#1113 2014-02-21 20:29:31

joetemp
Member
Registered: 2013-12-16
Posts: 73

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

Hey all,
Just installed BSPWM and love it!

One question: How do I change my desktop background? Didn't see anything about this here or on Github. Thanks!

Offline

#1114 2014-02-21 20:43:16

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

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

joetemp wrote:

One question: How do I change my desktop background?

Use something like feh.

Offline

#1115 2014-02-22 15:44:51

Ploppz
Member
Registered: 2013-09-14
Posts: 313

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

After I did a system upgrade today, suddenly floating windows appear behind tiled windows of certain programs (i.e. firefox and eclipse), and won't come in front. Very annoying because I have to untile the issued tiled windows in order to operate the floating windows. When the issued tiled windows are in floating mode, then other floating windows act normally.

Offline

#1116 2014-02-22 19:57:38

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

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

Ploppz wrote:

suddenly floating windows appear behind tiled windows of certain programs

Please try the Git version.


gh · da · ds

Offline

#1117 2014-02-22 22:49:15

joetemp
Member
Registered: 2013-12-16
Posts: 73

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

I tried using compton with BSPWM and when I tried to resize windows, it was HORRIBLY slow and unresponsive. It actually wasn't even useable.

I'm going to assume this is a knows issue. However, I'd like to know: What window compositor will NOT do this?

Offline

#1118 2014-02-22 22:50:21

joetemp
Member
Registered: 2013-12-16
Posts: 73

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

What is the best panel to use with BSPWM? Bar or dzen2? Thanks for your input!

Offline

#1119 2014-02-23 05:15:17

easysid
Member
From: India
Registered: 2013-01-01
Posts: 256

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

Depends on your needs. If you do not need clickable areas on your panel (say to switch desktops or info popups), Bar is a better choice as it provides better text alignment. dzen2 on the other hand is horrible at that but it provides more than just a bar. It is also a notification system and you can get those cool popups you see on those reddit gifs tongue

Try both of them out. Just be sure to pull in git version of dzen2

Offline

#1120 2014-02-25 06:34:28

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

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

I remember there being a way to restart bspwm with the new config without killing the current session. Currently I have this to run bspwm:

while true; do
  sxhkd -c /home/hsp/.config/bspwm/sxhkdrc &
  [ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO"
  mkfifo "$PANEL_FIFO"
  bspwm -s "$PANEL_FIFO" -p W || break
done

This leaves 'zombie' applications and its undesirable. What is the correct way around it?

I know this has been discussed in this thread before, but it's gotten so big! I would be really nice if someone updated the wiki <3.

edit: None of my rules appear to be working.
xprop on any window shows this the first time:

_NET_WM_PID(CARDINAL) = 420
_NET_WM_NAME(UTF8_STRING) = "bspwm"
_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0xe00000

only with different values. The proper output is displayed the second time though.

My rules:

bspc rule -a Gimp -d ^8 --follow --floating
bspc rule -a Chromium -d ^2
bspc rule -a mpv --floating
bspc rule -a scratchpad --floating
bspc rule -a ncmpcpp --floating

Chromium isn't forced on workspace 2, nothing floats, etc.

Last edited by Hspasta (2014-02-25 09:13:07)

Offline

#1121 2014-02-25 16:15:48

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

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

A general question: Is there a way to get back to the previous windows arrangement after having used --balance?

Offline

#1122 2014-02-26 07:28:55

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

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

try

bspc desktop -E

If that's what you meant, I would map it in sxhkdrc. It's not in Baskerville's example.

Offline

#1123 2014-02-26 09:35:53

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

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

Hspasta wrote:

try

bspc desktop -E

That's not exactly what I meant, but I guess this is sufficient though – thank you. smile

Offline

#1124 2014-02-26 20:07:03

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

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

joetemp wrote:

I tried using compton with BSPWM and when I tried to resize windows, it was HORRIBLY slow and unresponsive. It actually wasn't even useable.

man sxhkd, last option.


gh · da · ds

Offline

#1125 2014-02-26 20:11:31

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

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

cju wrote:

A general question: Is there a way to get back to the previous windows arrangement after having used --balance?

It might be possible (via restore -T) if you save the tree of the involved desktop beforehand (the list of windows must be identical, otherwise you'll end up with a corrupted tree).


gh · da · ds

Offline

Board footer

Powered by FluxBB