There is a good Windows Management Tool divvy in Mac. There is no particularly useful tool in Ubuntu, but wmctrl and a script can be used to implement the Basic screen switching function: install wmctrlsudoapt-getinstallwmctrl to install the shell script #! /Bin/shset -- $ (xwininfo-root |
There is a good Windows Management Tool divvy in Mac. There is no particularly useful tool in Ubuntu, but wmctrl and a script can be used to implement the Basic screen switching function:
Install wmctrl
sudo apt-get install wmctrl
Install shell scripts
#!/bin/sh
set-- $(xwininfo -root| awk -F '[ :]+''/ (Width|Height):/ { print $3 }')
width=$1
height=$2
win1=$(xwininfo| awk '/^xwininfo: W/ { print $4 }')
win2=$(xwininfo| awk '/^xwininfo: W/ { print $4 }')
wmctrl -i -r $win1 -e 0,0,0,$((width/2)),$height
wmctrl -i -r $win2 -e 0,$((width/2)),0,$((width/2)),$height
Use
Run the script and click Select two windows to tile the entire screen around the two windows.
Based on this script, you can design more complex splitting solutions.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-08/122050.htm