talksbad.blogg.se

Linux best window manager for multiple monitors
Linux best window manager for multiple monitors









linux best window manager for multiple monitors

NOTE: This is runable from different places on different distros via the GUI. In virt-manager, select Show virtual hardware details. However, to view a second monitor simultaneously with the first, you will need to use the tool remote-viewer. To add a second monitor (or more) is also pretty easy, once you know how to do it. Then run the Keyboard Bindings applet: $ gnome-keybinding-properties It is easy to set up a virtual machine with the virt-manager GUI. If you find that the script can't move windows right, but it can move them left, then try replacing that line with POS1=1920, and replace 1920 with the width in pixels of your main monitor. POS1 calculates the width of your main screen by using the output of xrandr. usr/bin/xdotool windowmove `/usr/bin/xdotool getwindowfocus` $POS1 $POS2 POS1=`xrandr -current | head -2 | tail -1 | cut -d 'x' -f1 | cut -d ' ' -f3` The method provides the following script, windowmove.sh: #!/bin/bash The article is titled: Move Windows Between Monitors. Using this method you could select a window so that it was raised and had focus and by hitting the shortcut key combination, would send the application to another window. I also found another approach that also made use of xdotool but wrapped it in a shell script that you could then associate with a shortcut key.

linux best window manager for multiple monitors

Wmctrl -ir $wid -b add,maximized_vert,maximized_horz Wmctrl -ir $wid -b remove,maximized_vert,maximized_horzĮval `xdotool getwindowgeometry -shell $wid` Here’s a script that does that: wid=`xdotool getactivewindow`

linux best window manager for multiple monitors

Get its maximized state and remember it.There's a pretty good example of how you could do this in this articled titled: Xubuntu – moving windows between monitors.Įxcerpt from section: Moving the active window to the other monitor (finally!) Then you could run them accordingly when you have 1 or 2 monitors connected. Rough idea but you could achieve what you want by creating a couple of commands using xdotool.











Linux best window manager for multiple monitors