webviewscreensaver icon indicating copy to clipboard operation
webviewscreensaver copied to clipboard

Add support for multi-displays

Open liquidx opened this issue 9 years ago • 5 comments

Potentially add support for multiple URLs on multiple displays.

liquidx avatar Jun 14 '15 02:06 liquidx

Multiple monitor support would be great +1

IBMRob avatar Jan 10 '17 13:01 IBMRob

+1

jskrivanek avatar Jan 12 '17 11:01 jskrivanek

+1

JasPanesar avatar Jul 17 '17 04:07 JasPanesar

I don’t have a problem with it working on two screens at once. Is the issue still there? First screen is the Retina build-in of a Macbook Pro 14, second screen is a regular FullHD connected via a USB-C to HDMI adapter.

System Version: macOS 10.13.4 Kernel Version: Darwin 17.5.0

jaller94 avatar May 11 '18 21:05 jaller94

@jaller94 I think what this could mean, ie what I want, is a separate web page on each monitor. Now one of my URLs is google trends, and I get isolated content on each page, but I'd rather have a separate page on each monitor. Think multiple dashboards for each service.

One way to achieve this if you don't control the content is the following:

Create a file on your local harddrive, e.g. /Users/metoo/workspace/random.html put this in it: (nb: adapted from https://stackoverflow.com/questions/40456048/random-html-page-redirect)

<html><body>
<script>
    // get a random number between 0 and 2
    //
    //var randNum = Math.floor(Math.random() * 3);

    // An array of URL's
    var randURLs = [
"https://randomstreetview.com/#slideshow",
"http://www.google.com/trends/hottrends/visualize?pn=p1"
    ];

    // There was a 1 in 500 chance we generated a zero.
//    if (randNum == 0) {
        // randURLs.length will tell us how many elements are
        // in the randURLs array - we can use this to generate
        // a random number between 0 and n (number of elements)
        //
        // In our case there are 3 elements in the array, 0, 1
        // and 2. So we want to get another random number in
        // the inclusive range 0 - 2
        //
        var randURL = Math.floor(Math.random() * randURLs.length);

        window.open(randURLs[randURL], "_self");
 //   }
</script>
</body></html>

Then set your URL in webviewscreensaver to file:///Users/metoo/workspace/random.html

Done.

Harder Workaround (not simple, not tested - yet): Use the RandomExtra screensaver plus modify the webviewscreensaver source and build it to multiple unique IDs which could be selected per monitor.

jlongman avatar Jul 10 '18 18:07 jlongman