How to achieve screen segmentation in Ubuntu

Source: Internet
Author: User

Ubuntu is an open source Canonical operating system built by the global Professional Development team (Gnu/linux LTD) based on the Debian Gnu/linux, which supports x86, AMD64 (i.e. x64) and PPC architectures. Ubuntu has made great contributions to the popularization of Gnu/linux, especially desktop popularization, so that more people share the results of open source and wonderful. What I want to share with you today is the technique of implementing screen segmentation in Ubuntu. We will be able to split the screen after the screen can be divided into several small screen, and each small screen independent use, for you to achieve a display while watching the stock market, watching movies, watching news, playing games, etc., very interesting and practical!

Install Wmctrl

sudo apt-get install Wmctrl

Installing shell scripts

#!/bin/sh

Set--$ (xwininfo-root| awk-f ' [:]+ ')/(width| Height):/{print $} ')

Width=$1

Height=$2

win1=$ (xwininfo| awk '/^xwininfo:w/{print $} ')

win2=$ (xwininfo| awk '/^xwininfo:w/{print $} ')

Wmctrl-i-R $win 1-e 0,0,0,$ ((WIDTH/2)), $height

Wmctrl-i-R $win 2-e 0,$ ((WIDTH/2)), 0,$ ((WIDTH/2)), $height

Using the Execute script, click to select 2 Windows to tile the entire screen around 2 windows. Based on this script, you can actually design a more complex splitting scheme.

Read the above detailed content, we should soon be able to achieve screen segmentation, the users learn not to quickly practice, experience the same time watching video, play stocks, play the fun of the game.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.