Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multi-displays #12

Open
liquidx opened this issue Jun 14, 2015 · 5 comments
Open

Add support for multi-displays #12

liquidx opened this issue Jun 14, 2015 · 5 comments

Comments

@liquidx
Copy link
Owner

liquidx commented Jun 14, 2015

Potentially add support for multiple URLs on multiple displays.

@IBMRob
Copy link

IBMRob commented Jan 10, 2017

Multiple monitor support would be great +1

@jskrivanek
Copy link

+1

1 similar comment
@JasPanesar
Copy link

+1

@jaller94
Copy link

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

@jlongman
Copy link

jlongman commented Jul 10, 2018

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants