zoukankan      html  css  js  c++  java
  • 2014-11-11:Failure in faking Xinerama

    Why to split my screen to two workspace

    My desktop computer has a big 16:9 screen, and I'm finding it hard to fully utilize it during the 95% of the time that I'm coding and reading .
    I'd like to set it up as a kind of virtual dual screen by splitting the physical screen into two workspace.
    I know I could arrange my windows manually, but I'd like to be able to maximize a window and have it only consume half the monitor.

    Brife introduction to Fake Xinerama

    Fake Xinerama is a replacement libXinerama library that instead of querying the XServer reads ~/.fakexinerama and provides fake information about Xinerama screens based on this file. It can be used to fake a Xinerama setup ever on computers with just one monitor or to fake Xinerama setup other than one specified in the XServer configuration (e.g. making one screen smaller whern using two same screen). It's probably only useful for developers.

    Following is exactly how I made it work

    • Download fakexinerama.c from Fake Xinerama site
    • Add X11 lib to local library
    sudo apt-get install xorg-dev
    
    • Produce libXinerama.so.1.0.0
    gcc -02 -Wall fakexinerama.c -fPIC -o libXinerama.so.1.0.0 -shared
    
    • backup original libXinerama.so.1.0.0
      Path: /usr/lib/x86-64.../libXinerama.so.1.0.0
    • Override the original libXinerama file by one you produced
    sudo nautilus
    

    or

    sudo copy  ../*path*/libXinerama.so.1.0.0    /usr/lib/x86-64../
    
    • New .fakexinerama file in home
    vim .fakexinerama
    2
    0 0 1080 1080
    1080 0 840 1080
    
    • Log out and back in

    Result

    It works in Ubuntu-unity -14.04. However, the second title bar covers the first tible bar when I opened two windows and maximize them. I can't select the right window by clicking title bar one time, and it made me mad.
    It can't work in Ubuntu-gnome-14.04 and later version. After changing the .fakexinerama file , nothing changes in desktop.

    Reasons

    • The information post in 2012 may be out of date.
    • The version of ubuntu-gnome is too late.
  • 相关阅读:
    正则表达式在线测试(生成)工具
    org.eclipse.swt.custom.StyledText.getScrollbarsMode()I
    MySQL修改表一次添加多个列(字段)和索引
    How can I view currently running MySQL queries?( 查看正在运行的MySQL语句/脚本命令)
    faster alter table add column
    提取data.frame中的部分数据(不含列标题和行标题)
    How to generate a random number in R
    INSTALLMENT of QValue
    Linux 执行ll命令时指定按文件时间或大小排序
    替换 data.frame 中的特殊的值
  • 原文地址:https://www.cnblogs.com/cyno/p/4093526.html
Copyright © 2011-2022 走看看