Giter VIP home page Giter VIP logo

screen-rotator's Introduction

Screen Rotator (Gnome Extension).

This extension adds rotate left and rotate right buttons in the top panel to rotate the screen quickly. Useful for tablets and other devices without rotation sensors.

Screencast.from.2024-07-10.15-00-22.mp4

Primarily intended for devices with only one screen, but it supports multiple screens to handle drawing tablets, device development, virtual screens and other use cases. Auto Rotate on and off are both supported.

Installation instructions.

Automatic install (recommended).

Install from Gnome extensions website

Building from source.

See the build instructions below.

Manual install.

  • Download the zip file from releases.
  • Go to the Gnome Extensions folder ~/.local/share/gnome-shell/extensions/.
    If this folder does not exist on your system, you can also install the extension system-wide by placing it in /usr/share/gnome-shell/extensions/ instead. This is not recommended.
  • Create a folder for this extension named [email protected].
  • Place all the contents of the zip folder inside of this new folder.
  • Reload the shell to activate.

Build Requirements.

  • GNU Make
  • Yarn
  • Node (Preferably > 12.x.x)

Build/Debug Instructions.

This project uses a make.

make # install, build and deploy, all in one

make install # installs dependencies
make build   # Runs TypeScript and builds the extension files
make deploy  # deploys the files on the local system
make release # creates a bundle (zip file), ready for release

If you are using Xorg, press Alt+F2 to summon the command window, and then use the reload command to reload the shell.
If you are on Wayland, you can most easily test the extension by running an embedded shell, as shown below.

dbus-run-session -- gnome-shell --nested --wayland

Special Thanks

Thanks to Benji Lebon for the boilerplate starter code project gnome-extension-typescript

screen-rotator's People

Contributors

bronzdragon avatar jamikettunen avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jamikettunen

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.