Git Product home page Git Product logo

fakexrandr's Introduction

FakeXRandR

This is a counterpart to fakexinerama, but for XRandR. It hooks into libXrandr and replaces a certain, configurable monitor configuration with two virtual monitors, each of half the original's size.

Licensing

You may use, redistribute and modify this program under the terms of the GNU General Public License (GPL) Version 3, in the version available under the URL http://www.gnu.org/licenses/gpl.html#.

Use cases

You'll want to use this library if you have a multi-head setup, but a crappy video driver which tells RandR that there is only one big monitor, resulting in wrong window placement by window managers. Matrox Tripple Head 2 Go et al. are other candidates, where there really is only one big monitor, but you'd want to split it anyway.

With slight modifications, this library is also suited for developers willing to test multi-head behaviour without multiple monitors. Keep in mind that this library right now can not do more than split the monitor vertically in half.

Installation

Adjust the #DEFINE lines at the top of libXrandr.c to your configuration. The library will split the first screen it finds which has the resolution you supply there vertically in two. You might also have to adjust the path to the real libXrandr.so file.

Then compile using make. You will need the XRandR and X11 development packages for your distribution. Place the resulting library file and symlink in a library directory of higer priority, as /usr/local/lib. Run ldconfig to update the ld cache.

Enjoy :-)

To do

  • Make this configurable, allow more than one split, allow horizontal and not-in-half splits
  • I have a memory leak in the append_fake_-methods which I don't know how to fix right now: I can't free the old allocated space for some reason, so it is likely mine is not freed either..

See also

fakexrandr's People

Contributors

gerryd avatar phillipberndt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.