You are not logged in.

#601 2013-09-17 14:05:41

psycho
Member
Registered: 2013-04-26
Posts: 29

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

earsplit wrote:

Do these return anything? 

which panel

and

echo $PANEL_FIFO

Yes and yes.

http://s21.postimg.org/khft9giqd/2013_0 … _scrot.png

// Edit : upgraded to 3.11.1-1, rebooted, now works with

echo /tmp/panel-fifo | panel dzen2

I just have to modift the formatting and others. Thanks for your interest!

Last edited by psycho (2013-09-17 14:44:46)


~ > fortune
I never met a piece of chocolate I didn't like.

Offline

#602 2013-09-17 15:20: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

The new --one-shot rule syntax was a good idea! However, the existence of multiple rules that match all clients causes bspwm to crash upon the creation of a new window. E.g.:

 1 * --floating
 2 * --unmanage

If multiple one-shot rules that match all clients exist, will they all be applied to the next window?
I think there could be some interesting possibilities in terms of "queuing" rules.

Also, if a one-shot rule is added (with a keybinding, for example), is there any way to remove it without knowing the uid?
It would be easy enough to awk the rule list, but maybe a --rm last option would be beneficial. (I assumed the long option counterpart to -r would be --remove. Is there a reason that's not the case?)


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

Offline

#603 2013-09-17 15:22:32

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

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

psycho wrote:
echo /tmp/panel-fifo | panel dzen2

This is equivalent to:

panel dzen2

gh · da · ds

Offline

#604 2013-09-17 18:23:03

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

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

Supplantr wrote:
Ploppz wrote:

Doesn't look like you're executing bspwm...

aoba wrote:

[...]

Ohh, silly me! Fixed that and now when I run startx it doesn't go back to the bash shell but stays in xorg ( ? if that's correct use of words) - but it's all just black and I have no possibility of performing any action to get back to the shell. So don't know how to possibly troubleshoot this - please enlighten me smile

Offline

#605 2013-09-17 18:35:10

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

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

Supplantr wrote:

The new --one-shot rule syntax was a good idea! However, the existence of multiple rules that match all clients causes bspwm to crash upon the creation of a new window. E.g.:

 1 * --floating
 2 * --unmanage

Fixed, thanks for reporting.

Supplantr wrote:

If multiple one-shot rules that match all clients exist, will they all be applied to the next window?

Yes.

Supplantr wrote:

I think there could be some interesting possibilities in terms of "queuing" rules.

Could you elaborate?

Supplantr wrote:

Also, if a one-shot rule is added (with a keybinding, for example), is there any way to remove it without knowing the uid?

I've added the following keywords: tail, head.

Supplantr wrote:

I assumed the long option counterpart to -r would be --remove. Is there a reason that's not the case?

No, fixed.


gh · da · ds

Offline

#606 2013-09-17 21:14:37

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

Ploppz wrote:

Ohh, silly me! Fixed that and now when I run startx it doesn't go back to the bash shell but stays in xorg ( ? if that's correct use of words) - but it's all just black and I have no possibility of performing any action to get back to the shell. So don't know how to possibly troubleshoot this - please enlighten me smile

Did you follow @aoba's advice to add:

sxhkd &
exec bspwm

to .xinitrc? It really shouldn't be that difficult to get everything working. Look at the examples provided with bspwm and read sxhkd's documentation.

---

bloom wrote:

Could you elaborate?

Since every one-shot rule matching all clients will be removed when a new window is created, "queuing" rules isn't possible. It wouldn't be useful unless more window actions were supported, anyway.
Something similar to what I'm thinking of could probably be achieve using devilspie2.

bloom wrote:

I've added the following keywords: tail, head.

Thanks!
bspc rule -l \* doesn't work (which is the default behavior anyway, but <pattern> should probably support * everywhere).

Could a --locked rule be added? Maybe it would be a good idea to support all --toggle window options as rules, in which case perhaps their declaration should reflect the window command, i.e. bspc rule -a * -t locked.

Also, I'm assuming bspwm has no concept of minimized windows since xdotool getactivewindow windowminimize does nothing. Would this be difficult to implement? The utility of minimizing windows with a tiling WM might be questionable, but unmapping and remapping windows erases their locked (which is related to the above request), presel, etc. state. Plus, if the window were originally tiled, maybe a vacant node could be used to return it to its original position upon maximizing.


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

Offline

#607 2013-09-18 16:16:46

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

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

I have set up bspwm pretty much according to the example files in src/bspwm/examples/, and everything runs (nice WM btw). My only issue is: if I close bspwm, somehow the bar-aint-recursive process is not shut down correctly. The now orphaned (?) process is causing a CPU load of 100%. Restarting bspwm a new bar-instance is created which behaves fine, but the old one is still around causing said load. Any ideas how to check what's wrong?

The scripts are pretty much what was given in the examples, with the sole difference that I am using bar-aint-recursive-git, where the binary was changed to “bar-aint-recursive”. These are my configuration files:
$HOME/.xinitrc

#!/bin/zsh

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

/usr/bin/xscreensaver -no-splash &
/home/janis/.local/bin/lightsOn.sh &
/usr/bin/xset r rate 250 30 &

xset +fp /usr/share/fonts/local 
xset fp rehash 

#exec xmonad

sxhkd &
[ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO"
mkfifo "$PANEL_FIFO"
exec bspwm -s "$PANEL_FIFO" -p W

$HOME/.config/bspwm/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 &

$HOME/.local/bin/panel:

#! /bin/sh

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

flavor=${1:-bar}

bspc config top_padding $PANEL_HEIGHT
bspc control --put-status
xtitle -sf 'T%s' > "$PANEL_FIFO" &
clock -sf 'S%a %H:%M' > "$PANEL_FIFO" &

case "$flavor" in
    bar)
        cat "$PANEL_FIFO" | panel_bar | bar-aint-recursive &
        ;;
    dzen2)
        . panel_colors
        FONT_FAMILY='DejaVu Sans'
        FONT_SIZE=11
        cat "$PANEL_FIFO" | panel_dzen2 -f "$FONT_FAMILY" -s "$FONT_SIZE" | dzen2 -h $PANEL_HEIGHT -dock -ta l -title-name panel -fn "${FONT_FAMILY}:pixelsize=${FONT_SIZE}" -fg "$COLOR_FOREGROUND" -bg "$COLOR_BACKGROUND" &
        ;;
esac

wait
#! /bin/sh
#
# Example panel for LemonBoy's bar

while read -r line ; do
    case $line in
        S*)
            sys_infos="\\r\\f5${line#?}\\fr"
            ;;
        T*)
            title="\\c${line#?}"
            ;;
        W*)
            wm_infos=""
            IFS=':'
            set -- ${line#?}
            while [ $# -gt 0 ] ; do
                item=$1
                name=${item#?}
                case $item in
                    [OFU]*)
                        # active desktop
                        wm_infos="$wm_infos \\u5\\b2\\f9${name}\\fr\\br\\ur"
                        ;;
                    o*)
                        # inactive but occupied desktop
                        wm_infos="$wm_infos \\f7${name}\\fr"
                        ;;
                    f*)
                        # inactive desktop
                        wm_infos="$wm_infos ${name}"
                        ;;
                    u*)
                        # urgent desktop
                        wm_infos="$wm_infos \\b3\\f0${name}\\fr\\br"
                        ;;
                    L*)
                        # layout
                        layout=$(printf "%s" "${name}" | sed 's/\(.\).*/\U\1/')
                        wm_infos="$wm_infos \\b4\\f0$layout\\br\\fr"
                        ;;
                esac
                shift
            done
            ;;
    esac
    printf "%s\n" "$wm_infos $title $sys_infos"
done

Offline

#608 2013-09-18 18:57:59

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

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

Stalafin wrote:

My only issue is: if I close bspwm, somehow the bar-aint-recursive process is not shut down correctly.

How do you “close” bspwm?


gh · da · ds

Offline

#609 2013-09-18 19:03:20

F34R
Member
From: /dev/loliland
Registered: 2012-02-05
Posts: 245

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

Stalafin #607


Same thing i have , heavy load in one core of cpu . bar n process duplicate , after kill 2nd work as well. Other Issue:  I spawn the terminal and doeasn't fit to bar, also other application show wrong.

Offline

#610 2013-09-18 20:38:07

effae
Member
Registered: 2013-05-07
Posts: 39

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

bloom wrote:
Stalafin wrote:

My only issue is: if I close bspwm, somehow the bar-aint-recursive process is not shut down correctly.

How do you “close” bspwm?

I have the exact same problem, and I'm closing it with the standard shortcut keys from the sxhkd git example config.

Offline

#611 2013-09-18 20:50:39

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

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

effae wrote:
bloom wrote:
Stalafin wrote:

My only issue is: if I close bspwm, somehow the bar-aint-recursive process is not shut down correctly.

How do you “close” bspwm?

I have the exact same problem, and I'm closing it with the standard shortcut keys from the sxhkd git example config.

You could try the following instead:

super + alt + Escape
    pkill -x panel; bspc quit

gh · da · ds

Offline

#612 2013-09-19 03:33:31

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

Commit afcbf47 causes problems with Skype. It seems like its chat windows are not updated unless the desktop containing said windows has focus. When I give that desktop focus, all unseen chat messages appear to "pop" into the window at the same time. The problem is that the chat windows are not requesting the urgent state to be set.


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

Offline

#613 2013-09-19 05:50:43

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

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

I took the most recent example of panel_bar and panel and the output for bspwm's internal state doesn't show besides what tiling mode it is: http://i.imgur.com/aqgExgg.png

I see these:

WMHDMI-0:d1:d2:D3:E4:E5:E6:E7:E8:E9:E0:Ltiled
WMHDMI-0:d1:d2:D3:E4:E5:E6:E7:E8:E9:E0:Ltiled

in the PANEL_FIFO which doesn't seem to correspond with the case statements in panel_bar.

Offline

#614 2013-09-19 07:08:01

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

@Hspasta
The state output syntax changed. Build the latest version of bspwm from git.


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

Offline

#615 2013-09-19 09:06:33

effae
Member
Registered: 2013-05-07
Posts: 39

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

bloom wrote:
effae wrote:
bloom wrote:

How do you “close” bspwm?

I have the exact same problem, and I'm closing it with the standard shortcut keys from the sxhkd git example config.

You could try the following instead:

super + alt + Escape
    pkill -x panel; bspc quit

This fixes it, thanks.

Offline

#616 2013-09-19 11:33:47

blue
Member
Registered: 2011-10-13
Posts: 8

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

Hi

how can i switch between the tags/workspaces .
In awesome wm i did "super+left/right"

Offline

#617 2013-09-19 12:49:00

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

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

blue wrote:

how can i switch between the tags/workspaces .
In awesome wm i did "super+left/right"

Switch to desktop # 1:

bspc desktop -f ^1

Switch to the desktop/tag named "web":

bspc desktop -f web

Bind "switch to desktop # 0-9" to a shortcut key combination in sxhkd:

 mod4 + {1-9,0}
     bspc desktop -f ^{1-9,0}

All of this is documented

Offline

#618 2013-09-19 12:55:23

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

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

blue wrote:

Hi
how can i switch between the tags/workspaces .
In awesome wm i did "super+left/right"

super + {Left,Right}
    bspc desktop -f {prev,next}

gh · da · ds

Offline

#619 2013-09-19 12:57:40

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

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

andornaut wrote:
mod4 + {1-9,0}
    bspc desktop -f ^{1-9,0}
super + {1-9,0}
    bspc desktop -f ^{1-9,10}

gh · da · ds

Offline

#620 2013-09-19 13:15:31

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

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

I'm having the same problem as Ploppz - I've added sxhkd & bspwm to my .xinitrc and all I get is a black screen. The only slightly unusual setup for me is a dual monitor using nVidia's proprietary drivers.

I'm using the bspwm package, not -git, if it matters.

Offline

#621 2013-09-19 13:32:25

blue
Member
Registered: 2011-10-13
Posts: 8

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

bloom wrote:
blue wrote:

Hi
how can i switch between the tags/workspaces .
In awesome wm i did "super+left/right"

super + {Left,Right}
    bspc desktop -f {prev,next}

THX! Sometimes it is too easy....

Offline

#622 2013-09-19 13:52:27

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

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

bloom wrote:
effae wrote:
bloom wrote:

How do you “close” bspwm?

I have the exact same problem, and I'm closing it with the standard shortcut keys from the sxhkd git example config.

You could try the following instead:

super + alt + Escape
    pkill -x panel; bspc quit

That did it! Thanks.


I want to report another thing I noticed, which has to do with running two screens:
My Laptop is attached to an external monitor via a docking station. At start-up, the laptop's TFT shows a small portion (the top left part) of the external screen. Also, windows are not expanded to encompass the entire external screen, but only the part that fits the TFT is used. You can see this in the picture below:
5YxsiD6s.png

After turning the laptop's screen off with xrandr, the enumeration of the virtual desktops gets changed: look at the bar in the top left. “Desktop02” (I don't know, why it's called that) is now accessible via Super+1, while “I” is accessible via Super+2, etc. Before xrandr, Super+1 corresponded to “1”, as it should. This is what I see right after issuing the command.
WTnsLSrs.png

The now second virtual desktop called “I” now contains the terminal opened before:
j9fIpZ3s.png

Any ideas what's going on here?

Last edited by Stalafin (2013-09-19 16:13:26)

Offline

#623 2013-09-19 14:07:00

Nindwen
Member
From: Finland
Registered: 2013-09-02
Posts: 18
Website

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

With sxhkd, is there a way to easily use one key to cycle through multiple actions? For example, if I wanted to bind key to toggle something.

I'm thinking something like this:

super + something
    { bspc desktop -f pad,
      bspc desktop -f last }

echo nindwen.blue | cat

Offline

#624 2013-09-19 15:21:08

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

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

@Stalafin, you have been around here since 2007 and should know by now that those pictures are far, far too large for these threads.  You need to post those on some kind of picture hosting site and then link to them from here.  You can also create thumbnails and do some fancy tag nesting to make a thumbnail link to your image.

Offline

#625 2013-09-19 15:29:12

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

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

WonderWoofy wrote:

@Stalafin, you have been around here since 2007 and should know by now that those pictures are far, far too large for these threads.  You need to post those on some kind of picture hosting site and then link to them from here.  You can also create thumbnails and do some fancy tag nesting to make a thumbnail link to your image.

Yes, they are.  In general, I don't care about the size in pixels;  I care about the size in Bytes.  Please fix those, or convert them from img to url.  Moderators often do that for newbies, but I think you can handle it tongue


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB