Sunday, September 9, 2012

taralli: Screen edge pointer wrapping for X

The maximum travel distance between points on a desktop is substantially reduced if the pointer is allowed to travel off a screen edge and reappear at the opposite edge. In other words, we change the topology of the desktop to be that of a torus. This is not a new idea: it's implemented in several window managers, programs for Windows and Mac OS X, and is even the subject of a research paper.

I wanted a standalone program to implement mouse pointer wrapping for X Windows on GNU/Linux. Previously I was using Synergy for this task. Synergy is a very cool program, but it's not a good choice for pointer wrapping on a single machine.

  • Correctness: I have several monitors at different resolutions, which means my desktop isn't rectangular. Synergy didn't understand where the edge of each monitor is.

  • Security: I don't need the exposure of 95,000 lines of code for this simple task. Even if there are no bugs in Synergy, I'm one configuration mistake away from running an unencrypted network keylogger.

  • Energy efficiency: Synergy wakes up 40 times per second even when nothing is happening. This can have a significant impact on laptop battery life.

So I wrote taralli as a simple replacement. It doesn't automatically understand non-rectangular desktops, but you can easily customize the pointer position mapping, to implement multi-monitor wrap-around or many other behaviors. (If someone would like to contribute the code to get multi-monitor information from Xinerama or something, I would be happy to add that.)

taralli is under 100 lines of C99. It has been tested on GNU/Linux and is likely portable to other X platforms. You can download it from GitHub, which is also a great place to submit any bug reports or patches.

39 comments:

  1. I would love to download and check it out but before this I gotta get a laptop screen replacement to get back my laptop life.

    ReplyDelete
  2. Nice article, thanks for the information. It's very complete information. I will bookmark for next reference
    jaring futsal | jaring golf | jaring pengaman proyek |
    jaring pengaman bangunan | jaring pengaman gedung
    http://www.jual-jaring.blogspot.com/
    http://www.agen-jaring.blogspot.com/
    http://www.pancasamudera-safetynet.blogspot.com/
    http://www.toko-jaring.blogspot.com/
    http://www.pusat-jaring.blogspot.com/
    http://jualjaringpengaman.blogspot.com/
    https://pancasamudera.wordpress.com/
    https://pasangjaringfutsal.wordpress.com/
    https://jualtambangmurah.wordpress.com/
    https://tokojaring.wordpress.com/
    https://jualjaringfutsal.wordpress.com/
    https://jaringfutsal.wordpress.com/


    ReplyDelete
  3. I really liked this part of the article, with a nice and interesting topics have helped a lot of people who do not challenge things people should know... you need more publicize this so many people who know about it are rare for people to know this, Success for you..

    ReplyDelete
  4. A lot of things that can increase my knowledge here, I continue to monitor your blog for updates. Thankyou i really love it

    Filehippo

    ReplyDelete
  5. I really liked this part of the article, with a nice and interesting topics have helped a lot of people who do not challenge things people should know... you need more publicize this so many people who know about it are rare for people to know this, Success for you. Download Firefox 2016 Download Firefox 2016 Download Firefox 2016 Download Smadav 2016


    smadav 2016

    ReplyDelete
  6. I know where I'm going and I know the truth, and I don't have to be what you want me to be. I'm free to be what I want.Thankyou i really love it

    sharelink
    filehippo
    2016 free download latest version
    acehfreesoft
    umarka
    offlineinstallerfilehippo
    esoftpedia
    filehorse
    supportcanon
    freedownloadlatetsversion

    ReplyDelete
  7. Hi,
    That’s an amazing post. I’m sure these techniques will work for beginners. thanks for sharing great admin.
    Thanks
    for Sharing

    ReplyDelete
  8. Thanks for sharing, nice blog. This is a great article. It gave me a lot of useful information. plese visit me
    IDM 6.5 Build 5 kegan
    Trend Micro Antivirus
    Windows 7 Product Key
    Adobe Illustrator CC 2016 Crack

    ReplyDelete
  9. this site very helpful for reader and get more information here, and i found this blog good infomation and sharing about all

    brother mfc 8950dwt driver

    ReplyDelete
  10. Thanks for the best blog.it was very useful for me.keep sharing such ideas in the future as well. Thanks for giving me the useful information. I think I need it!
    Hug Day SMS 217
    Kiss Day SMS 2017

    ReplyDelete
  11. Hello sir, your web site is lovingly serviced and saved as much as date. So it should be, thanks for sharing this with us.
    i also found some helpful sites like yours.



    IRCTC
    irctc login

    erail

    NTES

    Indian Railway

    Train enquiry

    PNR Status

    Pnr enquiry

    running status


    spot your train
    live train status
    Train between stations
    book train tickets

    ReplyDelete
  12. Hello sir, your web site is lovingly serviced and saved as much as date. So it should be, thanks for sharing this with us.
    i also found some helpful sites like yours.


    Govt jobs
    free jobs
    job alerts
    fresh job alert
    bank jobs
    ibps jobs
    ssc jobs
    railway recruitment
    recruitment 2017
    latest jobs
    upcoming jobs
    army jobs

    ReplyDelete
  13. Hello sir, your web site is lovingly serviced and saved as much as date. So it should be, thanks for sharing this with us.
    i also found some helpful sites like yours.


    digital marketing
    SEO
    social media marketing
    web development
    software development
    SEM
    PPC
    affiliape marketing
    email marketing
    advertising agency

    ReplyDelete
  14. Hello sir, your web site is lovingly serviced and saved as much as date. So it should be, thanks for sharing this with us.
    i also found some helpful sites like yours.


    West Bengal Police jobs
    HSSC jobs
    RPSC jobs
    fresh job alert
    WPSC jobs
    IBPS jobs
    SSC jobs
    RRB recruitment
    RRC recruitment 2018
    Bihar police reruitment
    Bank jobs
    Latest jobs
    UPSSC jobs
    ARMY jobs
    Upcoming jobs

    ReplyDelete
  15. Hello sir, your web site is lovingly serviced and saved as much as date. So it should be, thanks for sharing this with us.
    i also found some helpful sites like yours.



    Recipes
    Best recipes
    Atozrecipes
    All recipes
    Indian recipes
    Punjabi recipes
    Chinese recipes
    Paneer recipes
    Sabji
    Breakfast recipes
    Dinner recipes
    Healthy recipes

    ReplyDelete
  16. This article is interesting and useful. Thank you for sharing. And let me share an article about health that God willing will be very useful. Thank you :)

    Cara Mengatasi Diare
    Obat Sariawan Alami
    Obat Penghancur Batu ginjal
    Cara Mudah Mengobati Diabetes
    Cara Menyembuhkan Mata Minus
    Cara Mengobati Gusi Bengkak

    ReplyDelete
  17. This is a wonderful article, Given so much info in it, You can see Travel Nearby best tourist place Best Honeymoon Destination in this page. Places to visit in Goa
    Weekend Gateways Near Pune
    Beautifull Hill Station for Couples

    ReplyDelete
  18. Thanks for sharing such beautiful information with us This is a wonderful article, Given so much info in it, You can see Travel Nearby best tourist place Best Honeymoon Destination in this page.

    Places to visit in Dharamshala
    Places to visit in Kasol
    Places to visit in Kinnaur
    Travel Destination Near Manali
    Beautifull Hill Station Shimla for Couples
    Tourist Place Near Kasauli

    ReplyDelete