Giter Club home page Giter Club logo

mirror-displays's Introduction

mirror-displays

A Mac app and command-line tool for fiddling with display mirroring: on/off/toggle

usage: mirror [option]    Only the first option passed will be applied
  -h            Print this usage and exit.
  -t            Toggle mirroring (default behavior)
  -on           Turn Mirroring On
  -off          Turn Mirroring Off
  -q            Query the Mirroring state and write "on" or "off" to stdout
  -l A B        Makes display at index B mirror the display at index A

Installing

The mirror command line tool is available via a Homebrew tap:

brew install fcanas/tap/mirror-displays

or

brew tap fcanas/tap
brew install mirror-displays

mirror-displays's People

Contributors

bitdeli-chef avatar fcanas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mirror-displays's Issues

Is this still supported?

On OS X Big Sur 11.6 it seems to be unable to get discovered via Spotlight, nor is the terminal version recognized.

It is in the Applications folder and clicking it does function as expected but this still is quite cumbursome to use.

bad CPU type in executable: mirror

Trying to install on a new MacMini 2023. My first Apple Silicon machine.
Thank you

john@Mac-mini ~ % brew install fcanas/tap/mirror-displays
==> Tapping fcanas/tap
Cloning into '/opt/homebrew/Library/Taps/fcanas/homebrew-tap'...
remote: Enumerating objects: 48, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 48 (delta 10), reused 3 (delta 3), pack-reused 31
Receiving objects: 100% (48/48), 8.26 KiB | 4.13 MiB/s, done.
Resolving deltas: 100% (15/15), done.
Tapped 5 formulae (19 files, 20KB).
==> Fetching fcanas/tap/mirror-displays
==> Downloading https://github.com/fcanas/mirror-displays/releases/download/v1.2/mirror.zip
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/1603
############################################################################################### 100.0%
==> Installing mirror-displays from fcanas/tap
==> Downloading https://formulae.brew.sh/api/formula.jws.json
############################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
############################################################################################### 100.0%
🍺  /opt/homebrew/Cellar/mirror-displays/1.2: 3 files, 15.0KB, built in 2 seconds
==> Running `brew cleanup mirror-displays`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

john@Mac-mini ~ % mirror
zsh: bad CPU type in executable: mirror

Select which display is mirrored

I'd like to mirror my laptop screen to my larger external monitor (when I'm using the larger monitor for a different computer), but I cannot get mirrordisplays to do so. These two commands have the exact same result (mirroring the external monitor to the Retina laptop screen, resulting in tiny text on the laptop):

mirror -l 0 1
mirror -l 1 0

Is this behavior expected? If it can be fixed, is there a way of changing the default behavior when running the app (from e.g. Sherlock).

I'm running 10.14.6, if that matters.

10.9.5 Mavericks Mirroring Off Issue

Similar to the Yosemite issue, while I can get mirroring to turn on using the command line commands (-on and -t) I cannot get mirroring to turn off and return to extended display mode (-off or -t)

Yosemite compatibility?

Just found this awesome project and find that it can turn mirroring on in Yosemite, but not off. Any plans to update?

Help Creating Automation

Your utility has been mentioned in several places as a way to restore functionality to an issue with displayplacer. I would like to use automator to run mirror-displays to turn off mirroring but I am unable to understand how to find the correct path. I have tried the following in automator: 1. select run shell script 2. change shell to bin/bash 3. add the following /usr/local/bin/mirror -off
I get the following: The action “Run Shell Script” encountered an error: “-: /usr/local/bin/mirror: No such file or directory”

Binary?

Hey,

is there any chance to distribute binary for the Catalina? I really don't want to install the Xcode just to build this small utility.

Thanks.

Sierra and El Capitan Compatability

Love the app functionality however it does not seem to work with 10.11 or 10.12. The past behavior of the toggle function not working is back. I am running both 10.11 and 10.12 on separate machines, both with 1 additional display. The app starts mirroring but it will not turn off. Querying the mirroring state while the displays are mirrored shows that mirroring is off. Thanks!

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.