Hello,

On Wed, 12 Jun 2019 22:10:20 +0200
Henry Jensen <hjen...@mailbox.org> wrote:

> I'm using OpenBSD Xenocara current with a multi head (dual monitor)
> setup. After using fluxbox and dwm I now wanted to try cwm. 
> 
> I like it so far, but is there a way I can move the current window from
> one monitor to the other with one single keybinding (i.e. like the
> "focusmon" command in the dwm window manager)?


What I have found out so far:

It was suggested on Mastodon, that cwm handles multiple monitors as
one, big screen. However, window-snap-left/right "snaps" the current
window on the edge of the current monitor. window-snap-* doesn't move windows
across monitors. That would suggest, that cwm is aware of multiple
monitors after all.

Someone gave me a hint to use xdotool and wmctrl. I found a python
script at https://github.com/calandoa/movescreen which utilizes this
two tools. With this I am able to move a window from the left monitor
to the right, but not vice versa. In other winow mangers (e.g. fluxbox)
it works in both directions, as it should.

Reply via email to