Closed TheZoq2 closed 7 years ago
Does bspc query -N -n east
return the correct value?
Yes, query seems to work fine
I tested it again and it looks like I did something wrong when testing it last time. bspc query -N -n east
also returns the wrong node
@TheZoq2 Are you sure the problem lies with bspwm
and not your script? I just tried to reproduce this issue, but was unable to do so (I am running the latest git master). Both bspc node focused -f east
and bspc query -N -n east
give correct results.
Why the Python script? Why not just use:
super + {Left,Down,Up,Right}
d={west,south,north,east}; \
bspc node --focus $d || \
bspc monitor --focus $d
super + shift + {Left,Down,Up,Right}
d={west,south,north,east}; \
bspc node --swap $d || \
bspc node --to-monitor $d
In my own config I also added priority to the preselected.
super + shift + {Left,Down,Up,Right}
d={west,south,north,east}; \
bspc node --to-node "${d}.!automatic" || \
bspc node $d --to-node 'focused.!automatic' || \
bspc node --swap $d || \
bspc node --to-monitor $d
An idea I took over from this config.
I just tried it and it seems to work in the current bspwm version so I guess the issue is fixed.
I didn't know you could do what my python script does just using sxhkd, I'll give that a try later
With the following window setup:
If window 1 is focused, and I execute
bspc node focused -f east
, window 3 gets focused instead of window 2. It also looks like window 2 gets focused for a very short time before 3 gets focused.This also seems to happen if the window2 'node' is split into more more nodes.
However, if window 3 is split horizontally like this:
Everhthing seems to work fine
Also, focusing west, east, north and south seem to work without issues
Here is a link to my dotfiles if they could cause issues. Most of the files in there are not used anymore but I havn't gotten around to cleaning them up https://github.com/TheZoq2/dotfiles/tree/master/.config/bspwm