Coder Social home page Coder Social logo

gnome-shell-extension-screen-autorotate's Introduction

Screen Autorotate

A GNOME extension to enable screen rotation regardless of touch mode.

This extension uses Mutter's D-Bus API, so it works on both X11 and Wayland.

Requirements

  • iio-sensor-proxy

Install

From extensions.gnome.org

GNOME Shell Extensions

From git

git clone https://github.com/kosmospredanie/gnome-shell-extension-screen-autorotate.git
cd gnome-shell-extension-screen-autorotate
cp -r [email protected] ~/.local/share/gnome-shell/extensions

gnome-shell-extension-screen-autorotate's People

Contributors

apebl avatar shyzus avatar

Stargazers

 avatar Ry avatar Tim Friedrich Brüggemann avatar Marek Ľach avatar e34rrsff avatar Marek Ryšavý avatar Matt Gibson avatar slimxfir avatar Iván avatar Jesus Figueredo avatar Drew Nutter avatar Alexander avatar mldy avatar barnabas avatar KGBDESIGNGLOBAL avatar Erik Stein avatar Brandon Dowdy avatar Eliver L. avatar nekojet avatar Robin Lee avatar

Watchers

James Cloos avatar Björn Janßen avatar  avatar Erik Sundin avatar  avatar

gnome-shell-extension-screen-autorotate's Issues

request: icon to trigger roration

Hi,
due my laptop's iio sensors currenty lack support in Linux I would like to ask if you would consider adding a icon to trigger rotation of the screen.

Best,
Tobias

License of this extension

Hi there,

thank you very much for sharing this code. I used parts of it in a quick&dirty extension that I put together and would like to properly attribute your work. Right now I'm just linking to this repository, but it would be nice to have a clear statement on the license under which you publish your code.

Thank you very much and best regards

Maximilian

Update for GNOME 41

This extension currently can't be used in GNOME 41, which is the version in Fedora 35.

Plugin doesn't work anymore

I installed the plugin few months ago and it worked.

However it stopped working recently on Fedora 34 + Gnome 40.3.0 (screen doesn't rotate anymore when i flip my laptop)

Don't know wich log i can give so feel free to ask if you want more information on this issue. (The plugin doesn't crash and seems to launch because i can see autorotate setting in gnome panel)

Edit: Issue comes from iio-sensor-proxy 3.1.1 update

Gnome 40 Fedora 34

This has recently stopped working under Gnome 40 and fedora 34.

Installed Packages
Name : mutter
Version : 40.2
Release : 2.fc34
Architecture : x86_64
Size : 12 M
Source : mutter-40.2-2.fc34.src.rpm
Repository : @System

Maintainer inactivity

The maintainer of this repository @kosmospredanie seems to have been inactive for substantial amount of time.

I would like to propose creating a fork of this repo and maintaining it myself until the return of @kosmospredanie. Mainly to keep changes like the versioning up to date and keep the extension working properly for the foreseeable future.

Suggested action: create a fork of this repo after at least 14 days assume @kosmospredanie remains inactive.

Update for GNOME 42

Extension doesn't work in gnome 42.beta. Manually adding 42 to the metadata.json still fails, complaining that this._actions.get(...) is undefined:

Some code accessed the property 'LOCK_ORIENTATION_ACTION_ID' on the module 'systemActions'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'.  The property access will work as previously for the time being, but please fix your code anyway.
JS ERROR: Extension [email protected]: TypeError: this._actions.get(...) is undefined
                                           _override_system_actions/this._system_actions._updateOrientationLock@/home/.../.local/share/gnome-shell/extensions/[email protected]/extension.js:123:27
                                           _override_system_actions@/home/.../.local/share/gnome-shell/extensions/[email protected]/extension.js:126:30
                                           ScreenAutorotate@/home/.../.local/share/gnome-shell/extensions/[email protected]/extension.js:106:14
                                           enable@/home/.../.local/share/gnome-shell/extensions/[email protected]/extension.js:193:21
                                           _callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:182:32
                                           loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:364:26
                                           _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:620:18
                                           collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:28
                                           _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:595:19
                                           _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:626:18
                                           _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:646:14
                                           init@resource:///org/gnome/shell/ui/extensionSystem.js:56:14
                                           _initializeUI@resource:///org/gnome/shell/ui/main.js:293:22
                                           start@resource:///org/gnome/shell/ui/main.js:170:5
                                           @resource:///org/gnome/shell/ui/init.js:6:17

(I thought this extension might not be needed in 42 based on gnome gitlab chatter, but still not seeing rotation work on my device)

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.