Rotation of the screen with Automator and a script

I have no knowledge whatsoever about scripts, coding or automator. I continue to read discussions about the issue, but I don't understand them. It would be a great help for me if someone please explain how to create a kind of keyboard shortcut that changed the rotation of the screen (the own macbook screen, not an external) using automator and a script on a Macbook Air running OS X El Capitan 10.11.2.

Is this possible?

Thank you in advance.

One option is to use the utility command line fb - turn in Automator service and assign a keyboard shortcut. Download the GitHub source fb-rotation, compilation, following the indications on GitHub and output the binary to usr; or download a binary compiled and move to usr/local/bin.

Create an Automator service, set the options "Service receives no entry in any application", add an action to run the Shell Script and set the options as "Shell: / bin/bash ', ' Pass entry: to stdin.  Type the command rotation fb for the desired degree of orientation of the screen such as ' / usr/local/bin/fb-rotation - d 0 - r 180 ' 180 ° on the main screen. Register the service under a name.

Go to  > System Preferences > keyboard > shortcuts > Services. Highlight the service you created, select it, click "none" and create a shortcut using a unique combination of keys. Create separate services of Automator for the additional screen orientations. Quit the system preferences when you are finished.

Tested with OS X 10.10.5 Yosemite and El Capitan 10.11.3

Tags: Mac OS & System Software

Similar Questions

Maybe you are looking for

  • What Version of Windows this laptop has been?

    I have been asked to take a look at a cell phone friends, a C50D - A - 13 G, He sees in a store for him have downgraded to Windows 8 for Windows 7 when he bought it. Now that windows 10 came out he wanted to return to windows 8 and get free upgrade t

  • Mosaic uncontrolled appears on my Toshiba 32L2333DG

    I have this TV. The problem is that sometimes uncontrolled tile appears on the TV, the intensity of the Signal is almost 94% and the signalquality is about 100%. Is there a problem with the TV or the cable operator?. It would also be possible that th

  • How you can transfer a file of music like iTunes or Spotify on a usb flash drive?

    I would like to listen to my music from Spotify and Itune on my Samsung HDTV system which has an application for a USB key, but I can't download the file to my USB Flash drive. What should I do?

  • I can't install the printer Brother DCP 1000 Windows 7.

    I can't get the windows 7 32-bit for my printer Brother DCP-1000 driver. Whenever I try to get the driver through the "Windows Update" button when the screen "install the printer driver', it tells me that it is impossible to connect and try again lat

  • Unable to show the custom workflow

    Hello worldI use Jdeveloper with JDeveloper 11.1.1.8 extension 11.1.1.7 and Webceter Portal Builder 1.8.I created a workflow in Jdeveloper and deployed in WC_spaces server. I added the workflow to shared resources. When I try to access this workflow