baskerville / bspwm

A tiling window manager based on binary space partitioning
BSD 2-Clause "Simplified" License
7.72k stars 415 forks source link

Move floating window without the mouse #191

Closed darvelo closed 9 years ago

darvelo commented 9 years ago

Maybe I missed something in the manual, but moving floating windows seems to be exclusive to the mouse pointer. It'd be cool if we had a way to move floating windows with sxhkd hotkeys like:

# move number of pixels left,down,up,right
super + {h,l}
    bspc window -x {-10,+10}

super + {j,k}
    bspc window -y {+10,-10}
noctuid commented 9 years ago

You can already do this with something like xdo or another similar tool (e.g. xdo move -x +10). By default, xdo will act on the currently focused window. There is also xdotool, wmctrl, wmutils' wmv, etc.

darvelo commented 9 years ago

@angelic-sedition Oh, ok cool, thanks! I did it with:

super + {h,j,k,l}
    xdotool getwindowfocus windowmove --relative %1 {-20 0, 0 +20, 0 -20, +20 0}